Skip to content

Commit

Permalink
listen on /swversion and /api/v0/swversion for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Apr 22, 2024
1 parent a5b017d commit 752d984
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 31 deletions.
69 changes: 38 additions & 31 deletions docker/kustomize/overlays/stage/vcell-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,41 @@ spec:
- vcellapi-test.cam.uchc.edu
secretName: letsencrypt-prod-vcell-tls
rules:
- host: vcellapi-test.cam.uchc.edu
http:
paths:
- path: /api/v1/
pathType: Prefix
backend:
service:
name: rest
port:
number: 80
- path: /n5Data
pathType: Prefix
backend:
service:
name: s3proxy
port:
number: 80
- path: /api/v0/
pathType: Prefix
backend:
service:
name: api
port:
number: 8080
- path: /
pathType: Prefix
backend:
service:
name: webapp
port:
number: 80
- host: vcellapi-test.cam.uchc.edu
http:
paths:
- path: /api/v1/
pathType: Prefix
backend:
service:
name: rest
port:
number: 80
- path: /n5Data
pathType: Prefix
backend:
service:
name: s3proxy
port:
number: 80
- path: /api/v0/
pathType: Prefix
backend:
service:
name: api
port:
number: 8080
- path: /swversion
pathType: Prefix
backend:
service:
name: api
port:
number: 8080
- path: /
pathType: Prefix
backend:
service:
name: webapp
port:
number: 80
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ public Restlet createInboundRoot() {
String SCRIPTS = "scripts";

Router rootRouter = new Router(getContext());
rootRouter.attach("/"+SWVERSION, new SWVersionRestlet(getContext())); // for backward compatibility
rootRouter.attach(PATH_PREFIX+"/", new SWVersionRestlet(getContext()));
rootRouter.attach(PATH_PREFIX+"/"+SWVERSION, new SWVersionRestlet(getContext()));

Expand Down

0 comments on commit 752d984

Please sign in to comment.