From 83718c344aa46f324dfd0b7d6b9627b5313354db Mon Sep 17 00:00:00 2001 From: Fabrice Rabaute Date: Mon, 8 Feb 2021 21:59:34 -0800 Subject: [PATCH] helm: allow image tag override --- helm/templates/deployment.yaml | 2 +- helm/values.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index 51298a9..d7ae9e9 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -35,7 +35,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 }} args: {{- if .Values.config }} diff --git a/helm/values.yaml b/helm/values.yaml index fe1a20c..0c326cc 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -17,6 +17,8 @@ replicaCount: 1 image: repository: sstarcher/helm-exporter + # Overrides the image tag whose default is the chart version. + tag: "" pullPolicy: Always imagePullSecrets: []