diff --git a/helm/kube-image-keeper/templates/garbage-collection-cron-job.yaml b/helm/kube-image-keeper/templates/garbage-collection-cron-job.yaml index 110ca590..b0c02d2d 100644 --- a/helm/kube-image-keeper/templates/garbage-collection-cron-job.yaml +++ b/helm/kube-image-keeper/templates/garbage-collection-cron-job.yaml @@ -15,7 +15,7 @@ spec: jobTemplate: spec: backoffLimit: 3 - activeDeadlineSeconds: 600 + activeDeadlineSeconds: {{ .Values.registry.garbageCollection.activeDeadlineSeconds }} template: spec: serviceAccountName: {{ include "kube-image-keeper.fullname" . }}-registry-restart diff --git a/helm/kube-image-keeper/values.yaml b/helm/kube-image-keeper/values.yaml index b042713a..97cd01de 100644 --- a/helm/kube-image-keeper/values.yaml +++ b/helm/kube-image-keeper/values.yaml @@ -232,6 +232,8 @@ registry: deleteUntagged: false # -- Specify a nodeSelector for the garbage collector pod nodeSelector: {} + # -- Deadline for the whole job + activeDeadlineSeconds: 600 # -- Resources settings for the garbage collector pod resources: requests: