Skip to content

Commit 11cefb2

Browse files
authored
feat(helm): Allow to keep initializer if requested (#11257)
1 parent f9fc3f2 commit 11cefb2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

helm/defectdojo/templates/initializer-job.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ metadata:
1515
{{- toYaml . | nindent 4 }}
1616
{{- end }}
1717
spec:
18+
{{- if and (int .Values.initializer.keepSeconds) (gt (int .Values.initializer.keepSeconds) 0) }}
1819
ttlSecondsAfterFinished: {{ .Values.initializer.keepSeconds }}
20+
{{- end }}
1921
template:
2022
metadata:
2123
labels:

helm/defectdojo/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ initializer:
321321
jobAnnotations: {}
322322
annotations: {}
323323
labels: {}
324-
keepSeconds: 60
324+
keepSeconds: 60 # A positive integer will keep this Job and Pod deployed for the specified number of seconds, after which they will be removed. For all other values, the Job and Pod will remain deployed.
325325
affinity: {}
326326
nodeSelector: {}
327327
resources:

0 commit comments

Comments
 (0)