Skip to content

Commit a08e964

Browse files
authored
Added overrideRootPath option. (#245)
* Added overrideRootPath option. * Created a release for 0.7.5.
1 parent b98818c commit a08e964

File tree

7 files changed

+60
-1
lines changed

7 files changed

+60
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.7.5] - 2025-07-11
9+
10+
### Changed
11+
12+
- Added option to overrid root-paths of API services [#245](https://github.com/developmentseed/eoapi-k8s/pull/245)
13+
814
## [0.7.4] - 2025-06-30
915

1016
### Changed

helm-chart/eoapi/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ annotations:
3939
# This is the chart version. This version number should be incremented each time you make changes
4040
# to the chart and its templates, including the app version.
4141
# Versions are expected to follow Semantic Versioning (https://semver.org/)
42-
version: "0.7.4"
42+
version: "0.7.5"
4343

4444
# This is the version number of the application being deployed. This version number should be
4545
# incremented each time you make changes to the application. Versions are not expected to

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)