From 36663e7a65b070acdcbea16c42d1ef82720eef7c Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Thu, 19 Jan 2023 20:25:09 +0000 Subject: [PATCH] fix: replace + with _ in Chart.Version label field (#6047) (#6056) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Linda Arende Signed-off-by: Linda Arende Co-authored-by: Linda Arende Signed-off-by: Linda Arende Co-authored-by: Linda Δ€rende <64084638+LindaArende@users.noreply.github.com> Co-authored-by: Linda Arende --- charts/kyverno-policies/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/kyverno-policies/templates/_helpers.tpl b/charts/kyverno-policies/templates/_helpers.tpl index d9d4bb164f..ef0b68f294 100644 --- a/charts/kyverno-policies/templates/_helpers.tpl +++ b/charts/kyverno-policies/templates/_helpers.tpl @@ -16,7 +16,7 @@ app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/name: {{ template "kyverno-policies.name" . }} app.kubernetes.io/part-of: {{ template "kyverno-policies.name" . }} -app.kubernetes.io/version: "{{ .Chart.Version }}" +app.kubernetes.io/version: "{{ .Chart.Version | replace "+" "_" }}" helm.sh/chart: {{ template "kyverno-policies.chart" . }} {{- if .Values.customLabels }} {{ toYaml .Values.customLabels }}