add imagePullSecrets support

This commit is contained in:
timfeirg 2020-12-14 19:39:48 +08:00
parent fadb85f3db
commit 5ad3332f0a
No known key found for this signature in database
GPG Key ID: E0AABAE6842603BA
2 changed files with 5 additions and 0 deletions

View File

@ -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 }}"

View File

@ -26,6 +26,8 @@ clusterIssuer:
# dnsZones:
# - 'example.com'
# imagePullSecrets:
# - name: regcred
image:
repository: qqshfox/cert-manager-webhook-dnspod
#tag: latest