Add imagePullSecret to the `default` helm create template

This relates to [#3529](https://github.com/helm/helm/issues/3529).
It adds image.pullSecret to the default generate blank chart
when the user does `helm create`.

Signed-off-by: Don Bowman <don@agilicus.com>
pull/5271/head
Don Bowman 7 years ago
parent 16c10be8e6
commit 3b716b6d73
No known key found for this signature in database
GPG Key ID: D21D0E75160D9894

@ -62,6 +62,7 @@ image:
repository: nginx
tag: stable
pullPolicy: IfNotPresent
# pullSecret: my_secret
nameOverride: ""
fullnameOverride: ""
@ -189,6 +190,10 @@ spec:
app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
{{- if .Values.image.pullSecret -}}
imagePullSecrets:
- name: {{ .Values.image.pullSecret }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"

Loading…
Cancel
Save