From 1129d0de67d637db5c9f39c0cd257defc5164663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Philipp=20Ottm=C3=BCller?= Date: Wed, 25 Sep 2024 12:08:54 +0200 Subject: [PATCH] feat(helm): add customizable garbage collection deadline --- .../templates/garbage-collection-cron-job.yaml | 2 +- helm/kube-image-keeper/values.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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: