Closed baburciu closed 3 weeks ago
I'm not sure what should be best returned as error
return "", fmt.Errorf("failed parsing artifact revision %s", tagD[0])
or
return "", fmt.Errorf("failed parsing artifact revision %s", tagConverted)
but the conversion needs to happen prior to calling semver.NewVersion
I think we should return the one with a +
as that's the string we try to validate as semver.
PS. This PR needs a test using a tag that has _
.
thank you, I've added a test for it, which is passing make test
. I'm new to this, so if it's not that good, please inform
Closes https://github.com/fluxcd/helm-controller/issues/1099
OCI tags are not semver compatible, with
+
character not allowed. Helm worked around this by converting+
to_
before pushing to the OCI repo and vice versa when pulling from the repo.This PR makes helm-controller adhere to that convention, by converting OCI artifact tag using
_
to+
replacement prior to any check or processing.