Skip to content

Commit a3644ce

Browse files
authored
fix: enable annotations on multidim,raster,stac,vector (#286)
* fix: enable annotations on multidim,raster,stac,vector * fix: changelog
1 parent 411ddd2 commit a3644ce

File tree

9 files changed

+141
-0
lines changed

9 files changed

+141
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- `multidim`, `raster`, `stac`, and `vector` now allow annotations [#286](https://github.com/developmentseed/eoapi-k8s/pull/286)
13+
14+
1015
## [0.7.7] - 2025-09-05
1116

1217
### Fixed

charts/eoapi/templates/services/multidim/service.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ metadata:
55
name: {{ .Release.Name }}-multidim
66
labels:
77
app: {{ .Release.Name }}-multidim
8+
{{- if .Values.multidim.annotations }}
9+
annotations:
10+
{{- with .Values.multidim.annotations }}
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
13+
{{- end }}
814
spec:
915
ports:
1016
- port: {{ .Values.service.port }}

charts/eoapi/templates/services/raster/service.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ metadata:
55
name: {{ .Release.Name }}-raster
66
labels:
77
app: {{ .Release.Name }}-raster
8+
{{- if .Values.raster.annotations }}
9+
annotations:
10+
{{- with .Values.raster.annotations }}
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
13+
{{- end }}
814
spec:
915
ports:
1016
- port: {{ .Values.service.port }}

charts/eoapi/templates/services/stac/service.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ metadata:
55
name: {{ .Release.Name }}-stac
66
labels:
77
app: {{ .Release.Name }}-stac
8+
{{- if .Values.stac.annotations }}
9+
annotations:
10+
{{- with .Values.stac.annotations }}
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
13+
{{- end }}
814
spec:
915
ports:
1016
- port: {{ .Values.service.port }}

charts/eoapi/templates/services/vector/service.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ metadata:
55
name: {{ .Release.Name }}-vector
66
labels:
77
app: {{ .Release.Name }}-vector
8+
{{- if .Values.vector.annotations }}
9+
annotations:
10+
{{- with .Values.vector.annotations }}
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
13+
{{- end }}
814
spec:
915
ports:
1016
- port: {{ .Values.service.port }}

charts/eoapi/tests/multidim_tests.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,31 @@ tests:
5454
- equal:
5555
path: data.GDAL_HTTP_MULTIPLEX
5656
value: "YES"
57+
58+
- it: "multidim browser service"
59+
set:
60+
raster.enabled: false
61+
stac.enabled: false
62+
vector.enabled: false
63+
multidim.enabled: true
64+
browser.enabled: false
65+
multidim.annotations:
66+
annotation1: hello
67+
annotation2: world
68+
gitSha: "ABC123"
69+
template: templates/services/multidim/service.yaml
70+
asserts:
71+
- isKind:
72+
of: Service
73+
- matchRegex:
74+
path: metadata.name
75+
pattern: ^RELEASE-NAME-multidim$
76+
- matchRegex:
77+
path: metadata.labels.app
78+
pattern: ^RELEASE-NAME-multidim$
79+
- equal:
80+
path: metadata.annotations.annotation1
81+
value: hello
82+
- equal:
83+
path: metadata.annotations.annotation2
84+
value: world

charts/eoapi/tests/raster_tests.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,31 @@ tests:
5454
- equal:
5555
path: data.GDAL_HTTP_MULTIPLEX
5656
value: "YES"
57+
58+
- it: "raster browser service"
59+
set:
60+
raster.enabled: true
61+
stac.enabled: false
62+
vector.enabled: false
63+
multidim.enabled: false
64+
browser.enabled: false
65+
raster.annotations:
66+
annotation1: hello
67+
annotation2: world
68+
gitSha: "ABC123"
69+
template: templates/services/raster/service.yaml
70+
asserts:
71+
- isKind:
72+
of: Service
73+
- matchRegex:
74+
path: metadata.name
75+
pattern: ^RELEASE-NAME-raster$
76+
- matchRegex:
77+
path: metadata.labels.app
78+
pattern: ^RELEASE-NAME-raster$
79+
- equal:
80+
path: metadata.annotations.annotation1
81+
value: hello
82+
- equal:
83+
path: metadata.annotations.annotation2
84+
value: world

charts/eoapi/tests/stac_tests.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,31 @@ tests:
5454
- equal:
5555
path: data.WEB_CONCURRENCY
5656
value: "5"
57+
58+
- it: "stac browser service"
59+
set:
60+
raster.enabled: false
61+
stac.enabled: true
62+
vector.enabled: false
63+
multidim.enabled: false
64+
browser.enabled: false
65+
stac.annotations:
66+
annotation1: hello
67+
annotation2: world
68+
gitSha: "ABC123"
69+
template: templates/services/stac/service.yaml
70+
asserts:
71+
- isKind:
72+
of: Service
73+
- matchRegex:
74+
path: metadata.name
75+
pattern: ^RELEASE-NAME-stac$
76+
- matchRegex:
77+
path: metadata.labels.app
78+
pattern: ^RELEASE-NAME-stac$
79+
- equal:
80+
path: metadata.annotations.annotation1
81+
value: hello
82+
- equal:
83+
path: metadata.annotations.annotation2
84+
value: world

charts/eoapi/tests/vector_tests.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ tests:
1111
stac.enabled: false
1212
vector.enabled: true
1313
multidim.enabled: false
14+
1415
gitSha: "ABC123"
1516
template: templates/services/vector/deployment.yaml
1617
asserts:
@@ -55,3 +56,30 @@ tests:
5556
path: data.TIPG_CATALOG_TTL
5657
value: "300"
5758

59+
- it: "vector browser service"
60+
set:
61+
raster.enabled: false
62+
stac.enabled: false
63+
vector.enabled: true
64+
multidim.enabled: false
65+
browser.enabled: false
66+
vector.annotations:
67+
annotation1: hello
68+
annotation2: world
69+
gitSha: "ABC123"
70+
template: templates/services/vector/service.yaml
71+
asserts:
72+
- isKind:
73+
of: Service
74+
- matchRegex:
75+
path: metadata.name
76+
pattern: ^RELEASE-NAME-vector$
77+
- matchRegex:
78+
path: metadata.labels.app
79+
pattern: ^RELEASE-NAME-vector$
80+
- equal:
81+
path: metadata.annotations.annotation1
82+
value: hello
83+
- equal:
84+
path: metadata.annotations.annotation2
85+
value: world

0 commit comments

Comments
 (0)