Skip to content

Commit

Permalink
helm: allow image tag override
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrabaute authored and sstarcher committed Feb 9, 2021
1 parent 68fa268 commit 83718c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: []
Expand Down

0 comments on commit 83718c3

Please sign in to comment.