Skip to content

Commit aec078a

Browse files
Refactor ingress paths in deployment configurations to use configurable values for raster, stac, vector, and multidim services
1 parent 68a4d52 commit aec078a

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

helm-chart/eoapi/templates/services/browser/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ spec:
2020
- containerPort: 8080
2121
env:
2222
- name: SB_catalogUrl
23-
value: "/stac"
23+
value: "{{ .Values.stac.ingress.path }}"
2424
{{- end }}

helm-chart/eoapi/templates/services/multidim/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
{{- if (and (.Values.ingress.className) (or (eq .Values.ingress.className "nginx") (eq .Values.ingress.className "traefik"))) }}
4141
- "--proxy-headers"
4242
- "--forwarded-allow-ips=*"
43-
- "--root-path=/multidim"
43+
- "--root-path={{ .Values.multidim.ingress.path }}"
4444
{{- end }}{{/* needed for proxies and path rewrites on NLB */}}
4545
livenessProbe:
4646
tcpSocket:

helm-chart/eoapi/templates/services/raster/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
{{- if (and (.Values.ingress.className) (or (eq .Values.ingress.className "nginx") (eq .Values.ingress.className "traefik"))) }}
4141
- "--proxy-headers"
4242
- "--forwarded-allow-ips=*"
43-
- "--root-path=/raster"
43+
- "--root-path={{ .Values.raster.ingress.path }}"
4444
{{- end }}{{/* needed for proxies and path rewrites on NLB */}}
4545
livenessProbe:
4646
tcpSocket:

helm-chart/eoapi/templates/services/stac/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
{{- if (and (.Values.ingress.className) (or (eq .Values.ingress.className "nginx") (eq .Values.ingress.className "traefik"))) }}
4141
- "--proxy-headers"
4242
- "--forwarded-allow-ips=*"
43-
- "--root-path=/stac"
43+
- "--root-path={{ .Values.stac.ingress.path }}"
4444
{{- end }}{{/* needed for proxies and path rewrites on NLB */}}
4545
livenessProbe:
4646
tcpSocket:

helm-chart/eoapi/templates/services/traefik-middleware.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ spec:
88
stripPrefix:
99
prefixes:
1010
{{- if .Values.raster.enabled }}
11-
- /raster
11+
- {{ .Values.raster.ingress.path }}
1212
{{- end }}
1313
{{- if .Values.stac.enabled }}
14-
- /stac
14+
- {{ .Values.stac.ingress.path }}
1515
{{- end }}
1616
{{- if .Values.vector.enabled }}
17-
- /vector
17+
- {{ .Values.vector.ingress.path }}
1818
{{- end }}
1919
{{- if .Values.multidim.enabled }}
20-
- /multidim
20+
- {{ .Values.multidim.ingress.path }}
2121
{{- end }}
2222
{{- end }}

helm-chart/eoapi/templates/services/vector/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
{{- if (and (.Values.ingress.className) (or (eq .Values.ingress.className "nginx") (eq .Values.ingress.className "traefik"))) }}
4141
- "--proxy-headers"
4242
- "--forwarded-allow-ips=*"
43-
- "--root-path=/vector"
43+
- "--root-path={{ .Values.vector.ingress.path }}"
4444
{{- end }}{{/* needed for proxies and path rewrites on NLB */}}
4545
livenessProbe:
4646
tcpSocket:

0 commit comments

Comments
 (0)