diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index b088f20ce..f26ff47c8 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -97,6 +97,8 @@ replicaCount: 1 image: repository: nginx pullPolicy: IfNotPresent + # Overrides the image tag whose default is the chart version. + tag: "" imagePullSecrets: [] nameOverride: "" @@ -262,7 +264,7 @@ spec: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}" + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http