Skip to content

Commit 575c49b

Browse files
petrkohutPetr Kohut
and
Petr Kohut
authored
Allow to set pod annotations in post-install-upgrade job in helm chart (pravega#395)
Signed-off-by: Petr Kohut <[email protected]> Co-authored-by: Petr Kohut <[email protected]>
1 parent 4ceccde commit 575c49b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: charts/zookeeper/templates/post-install-upgrade-hooks.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ spec:
9696
template:
9797
metadata:
9898
name: {{ template "zookeeper.fullname" . }}-post-install-upgrade
99+
{{- if .Values.hooks.pod.annotations }}
100+
annotations:
101+
{{ toYaml .Values.hooks.pod.annotations | indent 8 }}
102+
{{- end }}
99103
spec:
100104
serviceAccountName: {{ template "zookeeper.fullname" . }}-post-install-upgrade
101105
restartPolicy: Never

Diff for: charts/zookeeper/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ hooks:
9595
repository: lachlanevenson/k8s-kubectl
9696
tag: v1.16.10
9797
backoffLimit: 10
98+
pod:
99+
annotations: {}
98100

99101
containers: []
100102
volumes: []

0 commit comments

Comments
 (0)