Closed makkes closed 1 month ago
The v
prefix is no valid for Helm charts, are you saying that you have a chart stored as vX.Y.Z
in a Helm HTTP repo and charts-syncer removes it from Chart.yaml but not from the artifact tag?
The
v
prefix is no valid for Helm charts
I ran into this with cert-manager:
$ helm search repo jetstack/cert-manager
NAME CHART VERSION APP VERSION DESCRIPTION
jetstack/cert-manager v1.14.5 v1.14.5 A Helm chart for cert-manager
They're using a v-prefixed version in their charts (that's also in the Chart.yaml).
are you saying that you have a chart stored as
vX.Y.Z
in a Helm HTTP repo and charts-syncer removes it from Chart.yaml but not from the artifact tag?
The other way around: charts-syncer stores the Helm artifact in OCI tagged as X.Y.Z
but the Chart.yaml
defines it as vX.Y.Z
.
Ok, we can backport this to v1.0.x but I would wait a week or two before doing a patch release.
We should also allow the reverse situation, v prefix in the tag, but no v in Chart.yaml.
We should also allow the reverse situation, v prefix in the tag, but no v in Chart.yaml.
It catches both. I implemented a test for each case.
Successfully created backport PR for release/v1.0.x
:
Tools such as Bitnami's charts-syncer strip the
v
prefix from the chart version so that the OCI artifact version differs from the version defined in the chart's metadata. This leads to an error similar to this returned from h-c:This PR makes h-c ignore a leading
v
prefix in either the chart version of the OCI artifact tag.