Skip to content

Commit 975a266

Browse files
Revert "Add configurable ingress paths for raster, stac, vector, and multidim services"
This reverts commit bdc2ffa.
1 parent 60b7263 commit 975a266

File tree

4 files changed

+5
-74
lines changed

4 files changed

+5
-74
lines changed

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

helm-chart/eoapi/templates/services/ingress.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ spec:
3636
paths:
3737
{{- if and .Values.raster.enabled (or (not (hasKey .Values.raster "ingress")) .Values.raster.ingress.enabled) }}
3838
- pathType: {{ if eq .Values.ingress.className "nginx" }}ImplementationSpecific{{ else }}Prefix{{ end }}
39-
path: {{ .Values.raster.ingress.path }}{{ if eq .Values.ingress.className "nginx" }}(/|$)(.*){{ end }}
39+
path: /raster{{ if eq .Values.ingress.className "nginx" }}(/|$)(.*){{ end }}
4040
backend:
4141
service:
4242
name: raster-{{ $.Release.Name }}
@@ -46,7 +46,7 @@ spec:
4646

4747
{{- if and .Values.stac.enabled (or (not (hasKey .Values.stac "ingress")) .Values.stac.ingress.enabled) }}
4848
- pathType: {{ if eq .Values.ingress.className "nginx" }}ImplementationSpecific{{ else }}Prefix{{ end }}
49-
path: {{ .Values.stac.ingress.path }}{{ if eq .Values.ingress.className "nginx" }}(/|$)(.*){{ end }}
49+
path: /stac{{ if eq .Values.ingress.className "nginx" }}(/|$)(.*){{ end }}
5050
backend:
5151
service:
5252
name: stac-{{ $.Release.Name }}
@@ -56,7 +56,7 @@ spec:
5656

5757
{{- if and .Values.vector.enabled (or (not (hasKey .Values.vector "ingress")) .Values.vector.ingress.enabled) }}
5858
- pathType: {{ if eq .Values.ingress.className "nginx" }}ImplementationSpecific{{ else }}Prefix{{ end }}
59-
path: {{ .Values.vector.ingress.path }}{{ if eq .Values.ingress.className "nginx" }}(/|$)(.*){{ end }}
59+
path: /vector{{ if eq .Values.ingress.className "nginx" }}(/|$)(.*){{ end }}
6060
backend:
6161
service:
6262
name: vector-{{ $.Release.Name }}
@@ -66,7 +66,7 @@ spec:
6666

6767
{{- if and .Values.multidim.enabled (or (not (hasKey .Values.multidim "ingress")) .Values.multidim.ingress.enabled) }}
6868
- pathType: {{ if eq .Values.ingress.className "nginx" }}ImplementationSpecific{{ else }}Prefix{{ end }}
69-
path: {{ .Values.multidim.ingress.path }}{{ if eq .Values.ingress.className "nginx" }}(/|$)(.*){{ end }}
69+
path: /multidim{{ if eq .Values.ingress.className "nginx" }}(/|$)(.*){{ end }}
7070
backend:
7171
service:
7272
name: multidim-{{ $.Release.Name }}

helm-chart/eoapi/tests/ingress_tests.yaml

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -91,65 +91,3 @@ tests:
9191
- equal:
9292
path: spec.rules[0].http.paths[1].backend.service.name
9393
value: doc-server-RELEASE-NAME
94-
95-
- it: "custom paths for multiple services with nginx controller"
96-
set:
97-
ingress.className: "nginx"
98-
raster.enabled: true
99-
raster.ingress.path: "/titiler"
100-
stac.enabled: true
101-
stac.ingress.path: "/api"
102-
vector.enabled: true
103-
vector.ingress.path: "/features"
104-
multidim.enabled: false
105-
browser.enabled: false
106-
asserts:
107-
- isKind:
108-
of: Ingress
109-
- equal:
110-
path: spec.rules[0].http.paths[0].path
111-
value: "/titiler(/|$)(.*)"
112-
- equal:
113-
path: spec.rules[0].http.paths[1].path
114-
value: "/api(/|$)(.*)"
115-
- equal:
116-
path: spec.rules[0].http.paths[2].path
117-
value: "/features(/|$)(.*)"
118-
- equal:
119-
path: spec.rules[0].http.paths[0].pathType
120-
value: "ImplementationSpecific"
121-
- equal:
122-
path: spec.rules[0].http.paths[1].pathType
123-
value: "ImplementationSpecific"
124-
- equal:
125-
path: spec.rules[0].http.paths[2].pathType
126-
value: "ImplementationSpecific"
127-
- equal:
128-
path: metadata.annotations
129-
value:
130-
nginx.ingress.kubernetes.io/use-regex: "true"
131-
nginx.ingress.kubernetes.io/rewrite-target: /$2
132-
133-
- it: "custom paths with traefik controller"
134-
set:
135-
ingress.className: "traefik"
136-
raster.enabled: false
137-
stac.enabled: true
138-
stac.ingress.path: "/api"
139-
vector.enabled: false
140-
multidim.enabled: false
141-
browser.enabled: false
142-
asserts:
143-
- isKind:
144-
of: Ingress
145-
- equal:
146-
path: spec.rules[0].http.paths[0].path
147-
value: "/api"
148-
- equal:
149-
path: spec.rules[0].http.paths[0].pathType
150-
value: "Prefix"
151-
- equal:
152-
path: metadata.annotations
153-
value:
154-
traefik.ingress.kubernetes.io/router.entrypoints: web
155-
traefik.ingress.kubernetes.io/router.middlewares: NAMESPACE-strip-prefix-middleware-RELEASE-NAME@kubernetescrd

helm-chart/eoapi/values.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ raster:
190190
enabled: true
191191
ingress:
192192
enabled: true # Control ingress specifically for raster service
193-
path: "/raster" # Configurable path prefix for the raster service
194193
autoscaling:
195194
# NOTE: to have autoscaling working you'll need to install the `eoapi-support` chart
196195
# see ../../../docs/autoscaling.md for more information
@@ -262,7 +261,6 @@ multidim:
262261
enabled: false # disabled by default
263262
ingress:
264263
enabled: true # Control ingress specifically for multidim service
265-
path: "/multidim" # Configurable path prefix for the multidim service
266264
autoscaling:
267265
# NOTE: to have autoscaling working you'll need to install the `eoapi-support` chart
268266
# see ../../../docs/autoscaling.md for more information
@@ -334,7 +332,6 @@ stac:
334332
enabled: true
335333
ingress:
336334
enabled: true # Control ingress specifically for stac service
337-
path: "/stac" # Configurable path prefix for the stac service
338335
autoscaling:
339336
# NOTE: to have autoscaling working you'll need to install the `eoapi-support` chart
340337
# see ../../../docs/autoscaling.md for more information
@@ -394,7 +391,6 @@ vector:
394391
enabled: true
395392
ingress:
396393
enabled: true # Control ingress specifically for vector service
397-
path: "/vector" # Configurable path prefix for the vector service
398394
autoscaling:
399395
# NOTE: to have autoscaling working you'll need to install the `eoapi-support` chart
400396
# see ../../../docs/autoscaling.md for more information
@@ -477,4 +473,4 @@ docServer:
477473
# prefer to set it in the command line
478474
# helm upgrade --set previousVersion=$PREVIOUS_VERSION
479475
# or in the CI/CD pipeline
480-
previousVersion: ""
476+
previousVersion: ""

0 commit comments

Comments
 (0)