Skip to content

Commit b6a9fa0

Browse files
fix: strip digest from image tag in version label in Helm chart (#23)
1 parent 0a5aca0 commit b6a9fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charts/k8s-aws-operator/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Common labels
3737
helm.sh/chart: {{ include "k8s-aws-operator.chart" . }}
3838
{{ include "k8s-aws-operator.selectorLabels" . }}
3939
{{- if .Chart.AppVersion }}
40-
app.kubernetes.io/version: {{ default .Chart.AppVersion .Values.image.tag | quote }}
40+
app.kubernetes.io/version: {{ regexReplaceAll "@sha256:[a-z0-9]+$" (.Values.image.tag | default .Chart.AppVersion) "" | quote }}
4141
{{- end }}
4242
app.kubernetes.io/managed-by: {{ .Release.Service }}
4343
app.kubernetes.io/instance: {{ .Release.Name }}

0 commit comments

Comments
 (0)