Commit badbbf2
authored
fix: sanitize chart version label to handle semver build metadata (#287)
When deploying via Flux HelmRelease with an OCIRepository chartRef,
Flux appends a truncated OCI digest as semver build metadata to the
chart version (e.g. `0.52.0+0d502f14f06f`). The `+` character is
invalid in Kubernetes label values, causing all resources with the
`helm.sh/chart-version` label to be rejected.
Replace `+` with `_` in the label value to ensure compatibility.1 parent 70693a3 commit badbbf2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
0 commit comments