From 8d8c47f624412a9f22eea49b73596e18a63a5685 Mon Sep 17 00:00:00 2001 From: Filippo Rossi Date: Fri, 13 Dec 2024 16:58:50 +0100 Subject: [PATCH] fix: replace plus character with underscore in version label Signed-off-by: Filippo Rossi --- cmd/build/helmify/static/templates/_helpers.tpl | 2 +- manifest_staging/charts/gatekeeper/templates/_helpers.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/build/helmify/static/templates/_helpers.tpl b/cmd/build/helmify/static/templates/_helpers.tpl index c8ffb260489..64541bbcee6 100644 --- a/cmd/build/helmify/static/templates/_helpers.tpl +++ b/cmd/build/helmify/static/templates/_helpers.tpl @@ -77,7 +77,7 @@ Common labels helm.sh/chart: {{ include "gatekeeper.chart" . }} {{ include "gatekeeper.selectorLabels" . }} {{- if .Chart.Version }} -app.kubernetes.io/version: {{ .Chart.Version | quote }} +app.kubernetes.io/version: {{ .Chart.Version | replace "+" "_" | quote }} {{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- if .Values.commonLabels }} diff --git a/manifest_staging/charts/gatekeeper/templates/_helpers.tpl b/manifest_staging/charts/gatekeeper/templates/_helpers.tpl index c8ffb260489..64541bbcee6 100644 --- a/manifest_staging/charts/gatekeeper/templates/_helpers.tpl +++ b/manifest_staging/charts/gatekeeper/templates/_helpers.tpl @@ -77,7 +77,7 @@ Common labels helm.sh/chart: {{ include "gatekeeper.chart" . }} {{ include "gatekeeper.selectorLabels" . }} {{- if .Chart.Version }} -app.kubernetes.io/version: {{ .Chart.Version | quote }} +app.kubernetes.io/version: {{ .Chart.Version | replace "+" "_" | quote }} {{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- if .Values.commonLabels }}