Skip to content

Commit

Permalink
MAJOR: kubernetes-ingress: Make controller.podAnnotations templatable
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Hossner <[email protected]>
  • Loading branch information
phihos committed Dec 20, 2024
1 parent f358fd5 commit 19f9c3c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
controller:
podAnnotations: |
my-checksum: {{ $.Values.myCustomVar | toYaml | sha256sum }}
myCustomVar:
FOO: BAR
4 changes: 4 additions & 0 deletions kubernetes-ingress/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ spec:
{{- end }}
{{- if .Values.controller.podAnnotations }}
annotations:
{{- if eq "string" (printf "%T" .Values.controller.podAnnotations) }}
{{ tpl .Values.controller.podAnnotations . | indent 8 }}
{{- else }}
{{ toYaml .Values.controller.podAnnotations | indent 8 }}
{{- end }}
{{- end }}
spec:
enableServiceLinks: {{ .Values.controller.enableServiceLinks }}
Expand Down

0 comments on commit 19f9c3c

Please sign in to comment.