Skip to content

Commit c4bb23c

Browse files
jpervilleNicolasgouze
authored andcommitted
feat(chart): configure the garbage collection cronjob image
1 parent 50a24dc commit c4bb23c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

helm/kube-image-keeper/templates/garbage-collection-cron-job.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ spec:
2222
restartPolicy: Never
2323
containers:
2424
- name: kubectl
25-
image: bitnami/kubectl
25+
image: "{{ .Values.registry.garbageCollection.image.repository }}:{{ .Values.registry.garbageCollection.image.tag }}"
26+
imagePullPolicy: {{ .Values.registry.garbageCollection.image.pullPolicy }}
2627
command:
2728
- bash
2829
- -c

helm/kube-image-keeper/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,13 @@ registry:
220220
schedule: "0 0 * * 0"
221221
# -- If true, delete untagged manifests. Default to false since there is a known bug in **docker distribution** garbage collect job.
222222
deleteUntagged: false
223+
image:
224+
# -- Cronjob image repository
225+
repository: bitnami/kubectl
226+
# -- Cronjob image pull policy
227+
pullPolicy: IfNotPresent
228+
# -- Cronjob image tag. Default 'latest'
229+
tag: "latest"
223230
service:
224231
# -- Registry service type
225232
type: ClusterIP

0 commit comments

Comments
 (0)