Skip to content

Commit 20720c2

Browse files
committed
Added overrideRootPath option.
1 parent b98818c commit 20720c2

File tree

5 files changed

+53
-0
lines changed

5 files changed

+53
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ 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+
{{- if .Values.multidim.overrideRootPath}}
44+
- "--root-path={{ .Values.multidim.overrideRootPath }}"
45+
{{- else }}
4346
- "--root-path={{ .Values.multidim.ingress.path }}"
47+
{{- end }}
4448
{{- end }}{{/* needed for proxies and path rewrites on NLB */}}
4549
livenessProbe:
4650
tcpSocket:
@@ -51,14 +55,22 @@ spec:
5155
timeoutSeconds: 1
5256
readinessProbe:
5357
httpGet:
58+
{{- if .Values.multidim.overrideRootPath}}
59+
path: {{ .Values.multidim.overrideRootPath }}/healthz
60+
{{- else}}
5461
path: /healthz
62+
{{- end}}
5563
port: {{ .Values.service.port }}
5664
failureThreshold: 3
5765
periodSeconds: 15
5866
successThreshold: 1
5967
startupProbe:
6068
httpGet:
69+
{{- if .Values.multidim.overrideRootPath}}
70+
path: {{ .Values.multidim.overrideRootPath }}/healthz
71+
{{- else}}
6172
path: /healthz
73+
{{- end}}
6274
port: {{ .Values.service.port }}
6375
# check every sec for 1 minute
6476
periodSeconds: 1

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ 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+
{{- if .Values.raster.overrideRootPath}}
44+
- "--root-path={{ .Values.raster.overrideRootPath }}"
45+
{{- else }}
4346
- "--root-path={{ .Values.raster.ingress.path }}"
47+
{{- end }}
4448
{{- end }}{{/* needed for proxies and path rewrites on NLB */}}
4549
livenessProbe:
4650
tcpSocket:
@@ -51,14 +55,22 @@ spec:
5155
timeoutSeconds: 1
5256
readinessProbe:
5357
httpGet:
58+
{{- if .Values.raster.overrideRootPath}}
59+
path: {{ .Values.raster.overrideRootPath }}/healthz
60+
{{- else}}
5461
path: /healthz
62+
{{- end}}
5563
port: {{ .Values.service.port }}
5664
failureThreshold: 3
5765
periodSeconds: 15
5866
successThreshold: 1
5967
startupProbe:
6068
httpGet:
69+
{{- if .Values.raster.overrideRootPath}}
70+
path: {{ .Values.raster.overrideRootPath }}/healthz
71+
{{- else}}
6172
path: /healthz
73+
{{- end}}
6274
port: {{ .Values.service.port }}
6375
# check every sec for 1 minute
6476
periodSeconds: 1

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ 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+
{{- if .Values.stac.overrideRootPath}}
44+
- "--root-path={{ .Values.stac.overrideRootPath }}"
45+
{{- else }}
4346
- "--root-path={{ .Values.stac.ingress.path }}"
47+
{{- end }}
4448
{{- end }}{{/* needed for proxies and path rewrites on NLB */}}
4549
livenessProbe:
4650
tcpSocket:
@@ -51,14 +55,22 @@ spec:
5155
timeoutSeconds: 1
5256
readinessProbe:
5357
httpGet:
58+
{{- if .Values.stac.overrideRootPath}}
59+
path: {{ .Values.stac.overrideRootPath }}/_mgmt/ping
60+
{{- else}}
5461
path: /_mgmt/ping
62+
{{- end}}
5563
port: {{ .Values.service.port }}
5664
failureThreshold: 3
5765
periodSeconds: 15
5866
successThreshold: 1
5967
startupProbe:
6068
httpGet:
69+
{{- if .Values.stac.overrideRootPath}}
70+
path: {{ .Values.stac.overrideRootPath }}/_mgmt/ping
71+
{{- else}}
6172
path: /_mgmt/ping
73+
{{- end}}
6274
port: {{ .Values.service.port }}
6375
# check every sec for 1 minute
6476
periodSeconds: 1

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ 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+
{{- if .Values.vector.overrideRootPath}}
44+
- "--root-path={{ .Values.vector.overrideRootPath }}"
45+
{{- else }}
4346
- "--root-path={{ .Values.vector.ingress.path }}"
47+
{{- end }}
4448
{{- end }}{{/* needed for proxies and path rewrites on NLB */}}
4549
livenessProbe:
4650
tcpSocket:
@@ -51,14 +55,22 @@ spec:
5155
timeoutSeconds: 1
5256
readinessProbe:
5357
httpGet:
58+
{{- if .Values.vector.overrideRootPath}}
59+
path: {{ .Values.vector.overrideRootPath }}/healthz
60+
{{- else}}
5461
path: /healthz
62+
{{- end}}
5563
port: {{ .Values.service.port }}
5664
failureThreshold: 3
5765
periodSeconds: 15
5866
successThreshold: 1
5967
startupProbe:
6068
httpGet:
69+
{{- if .Values.vector.overrideRootPath}}
70+
path: {{ .Values.vector.overrideRootPath }}/healthz
71+
{{- else}}
6172
path: /healthz
73+
{{- end}}
6274
port: {{ .Values.service.port }}
6375
# check every sec for 1 minute
6476
periodSeconds: 1

helm-chart/eoapi/values.schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
}
109109
}
110110
},
111+
111112
"postgresql": {
112113
"type": "object",
113114
"properties": {
@@ -412,6 +413,10 @@
412413
},
413414
"description": "Container command"
414415
},
416+
"overrideRootPath": {
417+
"type": "string",
418+
"description": "Override root path for this service"
419+
},
415420
"settings": {
416421
"type": "object",
417422
"properties": {

0 commit comments

Comments
 (0)