From 91d5915f78007b1c03e54a4ac1f274d552fdea77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linda=20=C4=80rende?= <64084638+LindaArende@users.noreply.github.com> Date: Thu, 19 Jan 2023 14:59:09 +0000 Subject: [PATCH] fix: replace + with _ in Chart.Version label field (#6047) Signed-off-by: Linda Arende Signed-off-by: Linda Arende 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 }}