Skip to content

Commit

Permalink
fix: replace + with _ in Chart.Version
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jfroy committed Jun 11, 2024
1 parent 8595b4a commit 5d6309b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this

{{- define "reloader-labels.chart" -}}
app: {{ template "reloader-fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
Expand Down

0 comments on commit 5d6309b

Please sign in to comment.