Skip to content

Commit 5d6309b

Browse files
committedJun 11, 2024·
fix: replace + with _ in Chart.Version
When using Flux with the OCI chart, the chart version has a git hash suffix (ex: 1.0.107+20eb5010550b), which is invalid as a metadata label.
1 parent 8595b4a commit 5d6309b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎deployments/kubernetes/chart/reloader/templates/_helpers.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
2222

2323
{{- define "reloader-labels.chart" -}}
2424
app: {{ template "reloader-fullname" . }}
25-
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
25+
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
2626
release: {{ .Release.Name | quote }}
2727
heritage: {{ .Release.Service | quote }}
2828
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}

0 commit comments

Comments
 (0)
Please sign in to comment.