Skip to content

Commit 632e2be

Browse files
authored
web: allow templated annotations
* Fixes web.annotations key type.
1 parent 7d2dcb8 commit 632e2be

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

charts/invenio/templates/web-service.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ metadata:
77
{{- include "invenio.labels" . | nindent 4 }}
88
app.kubernetes.io/component: web
99

10-
{{- if .Values.web.annotations }}
11-
annotations: {{- toYaml .Values.web.annotations | nindent 4 }}
10+
{{- with .Values.web.annotations }}
11+
annotations: {{- tpl (toYaml .) $ | nindent 4 }}
1212
{{- end }}
1313
spec:
1414
ports:

charts/invenio/values.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ web:
317317
capabilities:
318318
drop:
319319
- ALL
320-
## @param web.annotations Add extra annotations to the web pods
320+
## @param web.annotations Add extra (templated) annotations to the web service
321321
##
322-
annotations: []
322+
annotations: {}
323323
## @param web.nodeSelector Node labels for web pods assignment
324324
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
325325
##

0 commit comments

Comments
 (0)