Skip to content

Commit ff7593a

Browse files
committed
feat: configure cronjob restartPolicy through values
1 parent 541f368 commit ff7593a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

templates/cronjob.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ spec:
5555
securityContext: {{ omit .Values.containerSecurityContext "enabled" | toYaml | nindent 16 }}
5656
{{- end }}
5757
volumeMounts: {{ include "docker-registry.volumeMounts" . | nindent 16 }}
58-
restartPolicy: OnFailure
58+
restartPolicy: {{ .Values.garbageCollect.restartPolicy }}
5959
{{- if .Values.nodeSelector }}
6060
nodeSelector: {{ toYaml .Values.nodeSelector | nindent 12 }}
6161
{{- end }}

values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,3 +246,4 @@ garbageCollect:
246246
deleteUntagged: true
247247
schedule: "0 1 * * *"
248248
resources: {}
249+
restartPolicy: OnFailure

0 commit comments

Comments
 (0)