Skip to content

Commit a4cb6bb

Browse files
committed
fix(helm): merge extraAnnotations with init job annotations
1 parent b9836f2 commit a4cb6bb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

helm/defectdojo/templates/initializer-job.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ spec:
3636
{{- with .Values.initializer.labels }}
3737
{{- toYaml . | nindent 8 }}
3838
{{- end }}
39+
{{- with mergeOverwrite dict .Values.extraAnnotations .Values.initializer.jobAnnotations }}
3940
annotations:
40-
{{- with .Values.initializer.annotations }}
41-
{{- toYaml . | nindent 8 }}
41+
{{- range $key, $value := . }}
42+
{{ $key }}: {{ quote $value }}
43+
{{- end }}
4244
{{- end }}
4345
spec:
4446
{{- if .Values.securityContext.enabled }}

0 commit comments

Comments
 (0)