1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

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 <jacob@lorenzen.me>

* chore: remove truncate part

Signed-off-by: Jacob Lorenzen <jacob@lorenzen.me>

Signed-off-by: Jacob Lorenzen <jacob@lorenzen.me>
This commit is contained in:
Jacob Lorenzen 2022-12-06 14:26:15 +01:00 committed by GitHub
parent 4d4ec164dc
commit 81fb0caf1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 -}}