From 0e46867c7c7ad9b1b5ab12badaeff414c2c8851e Mon Sep 17 00:00:00 2001 From: Reik Keutterling Date: Thu, 20 May 2021 11:43:09 +0200 Subject: [PATCH] allow custom repositories for initContainer --- .../designate-certmanager-webhook/templates/deployment.yaml | 4 ++-- helm/designate-certmanager-webhook/values.yaml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/helm/designate-certmanager-webhook/templates/deployment.yaml b/helm/designate-certmanager-webhook/templates/deployment.yaml index 0929a3a6..3f5c1a90 100644 --- a/helm/designate-certmanager-webhook/templates/deployment.yaml +++ b/helm/designate-certmanager-webhook/templates/deployment.yaml @@ -26,7 +26,7 @@ spec: serviceAccountName: {{ include "designate-certmanager-webhook.fullname" . }} initContainers: - name: wait-for-tls-secret - image: alpine:latest + image: "{{ .Values.image.alpine.repository }}:{{ .Values.image.alpine.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} volumeMounts: - name: certs @@ -38,7 +38,7 @@ spec: - -c - "while [ ! -f /tls/tls.key ]; do sleep 5; done" - name: add-apiservice - image: bitnami/kubectl:latest + image: "{{ .Values.image.kubectl.repository }}:{{ .Values.image.kubectl.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} volumeMounts: - name: apiservice-config diff --git a/helm/designate-certmanager-webhook/values.yaml b/helm/designate-certmanager-webhook/values.yaml index 13539444..32ca44c6 100644 --- a/helm/designate-certmanager-webhook/values.yaml +++ b/helm/designate-certmanager-webhook/values.yaml @@ -8,6 +8,12 @@ image: repository: syseleven/designate-certmanager-webhook tag: 0.2.12 pullPolicy: IfNotPresent + alpine: + repository: alpine + tag: latest + kubectl: + repository: bitnami/kubectl + tag: latest imagePullSecrets: []