We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab431e8 commit dd462e2Copy full SHA for dd462e2
templates/cronjob.yaml
@@ -68,7 +68,7 @@ spec:
68
securityContext: {{ omit .Values.containerSecurityContext "enabled" | toYaml | nindent 16 }}
69
{{- end }}
70
volumeMounts: {{ include "docker-registry.volumeMounts" . | nindent 16 }}
71
- restartPolicy: OnFailure
+ restartPolicy: {{ .Values.garbageCollect.restartPolicy }}
72
{{- if .Values.nodeSelector }}
73
nodeSelector: {{ toYaml .Values.nodeSelector | nindent 12 }}
74
values.yaml
@@ -249,6 +249,7 @@ garbageCollect:
249
enabled: false
250
deleteUntagged: true
251
schedule: "0 1 * * *"
252
+ restartPolicy: OnFailure
253
podAnnotations: {}
254
podLabels: {}
255
resources: {}
0 commit comments