From 5ad3332f0ab7c71677b9d2f6ab1706fa41fe5483 Mon Sep 17 00:00:00 2001 From: timfeirg Date: Mon, 14 Dec 2020 19:39:48 +0800 Subject: [PATCH] add imagePullSecrets support --- deploy/cert-manager-webhook-dnspod/templates/deployment.yaml | 3 +++ deploy/cert-manager-webhook-dnspod/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/deploy/cert-manager-webhook-dnspod/templates/deployment.yaml b/deploy/cert-manager-webhook-dnspod/templates/deployment.yaml index c5ac0ba..30c4dce 100644 --- a/deploy/cert-manager-webhook-dnspod/templates/deployment.yaml +++ b/deploy/cert-manager-webhook-dnspod/templates/deployment.yaml @@ -20,6 +20,9 @@ spec: release: {{ .Release.Name }} spec: serviceAccountName: {{ include "cert-manager-webhook-dnspod.fullname" . }} + {{- if .Values.imagePullSecrets }} + imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 8 }} + {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" diff --git a/deploy/cert-manager-webhook-dnspod/values.yaml b/deploy/cert-manager-webhook-dnspod/values.yaml index dde766d..5051297 100644 --- a/deploy/cert-manager-webhook-dnspod/values.yaml +++ b/deploy/cert-manager-webhook-dnspod/values.yaml @@ -26,6 +26,8 @@ clusterIssuer: # dnsZones: # - 'example.com' +# imagePullSecrets: +# - name: regcred image: repository: qqshfox/cert-manager-webhook-dnspod #tag: latest