Skip to content

Commit

Permalink
feat(helm): Allow to keep initializer if requested (#11257)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik authored Nov 15, 2024
1 parent f71799e commit cdf7b82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions helm/defectdojo/templates/initializer-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if and (int .Values.initializer.keepSeconds) (gt (int .Values.initializer.keepSeconds) 0) }}
ttlSecondsAfterFinished: {{ .Values.initializer.keepSeconds }}
{{- end }}
template:
metadata:
labels:
Expand Down
2 changes: 1 addition & 1 deletion helm/defectdojo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ initializer:
jobAnnotations: {}
annotations: {}
labels: {}
keepSeconds: 60
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.
affinity: {}
nodeSelector: {}
resources:
Expand Down

0 comments on commit cdf7b82

Please sign in to comment.