fix(common): Fix annotations/labels processing

This commit is contained in:
Bernd Schorgers 2024-05-23 14:16:40 +02:00
parent 9bf86a0d10
commit d9e8c23df2
No known key found for this signature in database
GPG key ID: BC5E2BD907F9A8EC
17 changed files with 33 additions and 33 deletions

View file

@ -22,13 +22,13 @@ metadata:
{{- with $labels }}
labels:
{{- range $key, $value := . }}
{{ $key }}: {{ tpl $value $rootContext }}
{{- printf "%s: %s" $key (tpl $value $rootContext | toYaml ) | nindent 4 }}
{{- end }}
{{- end }}
{{- with $annotations }}
annotations:
{{- range $key, $value := . }}
{{ $key }}: {{ tpl $value $rootContext }}
{{- printf "%s: %s" $key (tpl $value $rootContext | toYaml ) | nindent 4 }}
{{- end }}
{{- end }}
data: