Skip to content

Commit

Permalink
fix: strip digest from image tag in version label in Helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredkrohmer committed Aug 19, 2024
1 parent 0a5aca0 commit 8ffb24e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/k8s-aws-operator/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Common labels
helm.sh/chart: {{ include "k8s-aws-operator.chart" . }}
{{ include "k8s-aws-operator.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ default .Chart.AppVersion .Values.image.tag | quote }}
app.kubernetes.io/version: {{ regexReplaceAll "@sha256:[a-z0-9]+$" (.Values.image.tag | default .Chart.AppVersion) "" | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
Expand Down

0 comments on commit 8ffb24e

Please sign in to comment.