Skip to content

Commit

Permalink
Merge pull request #915 from humio/mike/default_chart_tag_appversion
Browse files Browse the repository at this point in the history
helm: Update Deployment to use appVersion from Chart.yaml by default
  • Loading branch information
SaaldjorMike authored Feb 12, 2025
2 parents 76d4b7b + 40a1d72 commit 68834b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions charts/humio-operator/templates/operator-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
annotations:
productID: "none"
productName: "humio-operator"
productVersion: {{ .Values.operator.image.tag | quote }}
productVersion: "{{ .Values.operator.image.tag | default .Chart.AppVersion }}"
labels:
{{- include "humio.labels" . | nindent 4 }}
spec:
Expand All @@ -23,7 +23,7 @@ spec:
annotations:
productID: "none"
productName: "humio-operator"
productVersion: {{ .Values.operator.image.tag | quote }}
productVersion: "{{ .Values.operator.image.tag | default .Chart.AppVersion }}"
{{- if .Values.operator.podAnnotations }}
{{- toYaml .Values.operator.podAnnotations | nindent 8 }}
{{- end }}
Expand All @@ -49,7 +49,7 @@ spec:
serviceAccountName: {{ .Release.Name }}
containers:
- name: humio-operator
image: {{ .Values.operator.image.repository }}:{{ .Values.operator.image.tag }}
image: "{{ .Values.operator.image.repository }}:{{ .Values.operator.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.operator.image.pullPolicy }}
command:
- /manager
Expand Down
3 changes: 2 additions & 1 deletion charts/humio-operator/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
operator:
image:
repository: humio/humio-operator
tag: 0.27.1
# default for tag is the appVersion set in Chart.yaml
tag:
pullPolicy: IfNotPresent
pullSecrets: []
prometheus:
Expand Down

0 comments on commit 68834b8

Please sign in to comment.