Skip to content

Commit a673de8

Browse files
authored
Allow setting annotations for deployments (#177)
This change basically forwards `raster-eoapi.annotations` to the annotations of the respective deployment. There are no official guidelines on key structuring, but this follows conventions set by other large charts like [1] where properties on the top level object are forwarded to the central kubernetes object, in this case the deployment. Other objects could still be customized with sub-keys, e.g. `raster-eoapi.service.annotations` could be applied to the respective kubernetes service. The values currently also contain a `settings` key. Since properties like `image` or `command` are configured directly in `raster-eoapi`, I've also placed the annotations directly here. However they could also be moved to `settings`. [1] https://artifacthub.io/packages/helm/grafana/grafana
1 parent e459c4f commit a673de8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ metadata:
99
app: {{ $serviceName }}-{{ $.Release.Name }}
1010
gitsha: {{ $.Values.gitSha }}
1111
name: {{ $serviceName }}-{{ $.Release.Name }}
12+
{{- with index $v "annotations" }}
13+
annotations:
14+
{{- toYaml . | nindent 4 }}
15+
{{- end }}
1216
spec:
1317
progressDeadlineSeconds: 600
1418
revisionHistoryLimit: 5

0 commit comments

Comments
 (0)