From 7816b6f2a21c5246e086502ed97316ca439b4b95 Mon Sep 17 00:00:00 2001 From: Viktor B Date: Tue, 22 Nov 2022 13:48:51 +0200 Subject: [PATCH] cronjob pull secrets --- charts/kanister-actionset/Chart.yaml | 2 +- charts/kanister-actionset/templates/cronjob.yaml | 4 ++++ charts/kanister-actionset/values.yaml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/kanister-actionset/Chart.yaml b/charts/kanister-actionset/Chart.yaml index 7069e52..44e9e8a 100644 --- a/charts/kanister-actionset/Chart.yaml +++ b/charts/kanister-actionset/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.0 +version: 0.1.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/kanister-actionset/templates/cronjob.yaml b/charts/kanister-actionset/templates/cronjob.yaml index fd594f4..5cbbe77 100644 --- a/charts/kanister-actionset/templates/cronjob.yaml +++ b/charts/kanister-actionset/templates/cronjob.yaml @@ -29,4 +29,8 @@ spec: --options tenant={{ .Values.tenant }},environment={{ .Values.environment }},application={{ .Values.application }} resources: {} restartPolicy: Never + {{- if .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml .Values.imagePullSecrets | nindent 12 }} + {{- end }} {{- end }} \ No newline at end of file diff --git a/charts/kanister-actionset/values.yaml b/charts/kanister-actionset/values.yaml index f7b23af..9c8a344 100644 --- a/charts/kanister-actionset/values.yaml +++ b/charts/kanister-actionset/values.yaml @@ -5,6 +5,7 @@ image: repository: ghcr.io/kanisterio/kanister-tools tag: latest +imagePullSecrets: [] nameOverride: "" fullnameOverride: ""