From e7202fb4125416544804cde16a4487736e7afbbe Mon Sep 17 00:00:00 2001 From: unglaublicherdude Date: Thu, 11 May 2023 09:23:18 +0200 Subject: [PATCH] makes the update image variable --- charts/gdscan/Chart.yaml | 2 +- charts/gdscan/templates/update.yaml | 2 +- charts/gdscan/values.yaml | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/gdscan/Chart.yaml b/charts/gdscan/Chart.yaml index e9f7fda..fbdb7b8 100644 --- a/charts/gdscan/Chart.yaml +++ b/charts/gdscan/Chart.yaml @@ -5,4 +5,4 @@ maintainers: - name: G DATA CyberDefense AG email: oem@gdata.de type: application -version: 0.8.1 +version: 0.8.2 diff --git a/charts/gdscan/templates/update.yaml b/charts/gdscan/templates/update.yaml index 9214af0..143a937 100644 --- a/charts/gdscan/templates/update.yaml +++ b/charts/gdscan/templates/update.yaml @@ -56,7 +56,7 @@ spec: restartPolicy: Never containers: - name: kubectl - image: bitnami/kubectl + image: "{{ .Values.autoUpdate.image.registry }}/{{ .Values.autoUpdate.image.repository }}:{{ .Values.autoUpdate.image.tag }}" command: - "kubectl" - "rollout" diff --git a/charts/gdscan/values.yaml b/charts/gdscan/values.yaml index d2a4762..9a5f2b8 100644 --- a/charts/gdscan/values.yaml +++ b/charts/gdscan/values.yaml @@ -74,6 +74,10 @@ persistence: storageClass: "" autoUpdate: + image: + registry: docker.io + repository: bitnami/kubectl + tag: latest enabled: true # every hour schedule: "0 * * * *"