From 81fb0caf1b495a66e079a5652fb6e3a7a63a8a01 Mon Sep 17 00:00:00 2001 From: Jacob Lorenzen Date: Tue, 6 Dec 2022 14:26:15 +0100 Subject: [PATCH] fix: replace + symbol with _ symbol on the Chart.Version field (#5591) * fix: replace + symbol with _ symbol on the Chart.Version field Signed-off-by: Jacob Lorenzen * chore: remove truncate part Signed-off-by: Jacob Lorenzen Signed-off-by: Jacob Lorenzen --- charts/kyverno/templates/_helpers.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/kyverno/templates/_helpers.tpl b/charts/kyverno/templates/_helpers.tpl index 09e9e43d7b..4708d55078 100644 --- a/charts/kyverno/templates/_helpers.tpl +++ b/charts/kyverno/templates/_helpers.tpl @@ -35,7 +35,7 @@ helm.sh/chart: {{ template "kyverno.chart" . }} app.kubernetes.io/component: kyverno app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/part-of: {{ template "kyverno.name" . }} -app.kubernetes.io/version: "{{ .Chart.Version }}" +app.kubernetes.io/version: "{{ .Chart.Version | replace "+" "_" }}" {{- if .Values.customLabels }} {{ toYaml .Values.customLabels }} {{- end }} @@ -48,7 +48,7 @@ app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/name: {{ template "kyverno.name" . }}-test app.kubernetes.io/part-of: {{ template "kyverno.name" . }} -app.kubernetes.io/version: "{{ .Chart.Version }}" +app.kubernetes.io/version: "{{ .Chart.Version | replace "+" "_" }}" helm.sh/chart: {{ template "kyverno.chart" . }} {{- end -}}