You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On https://github.com/Masterminds/semver it looks like a tag like v1.2.3 would be a valid SemVer tag under the SemVer ImagePolicy. I would like to see this fact explicitly reflected (or explicitly demented, maybe with a workaround regexp if necessary) on the documentation pages for Flux.
The text was updated successfully, but these errors were encountered:
But you may find here or there, it works, because the masterminds library is used. This is not a guarantee. Semver library says optionally support "v" - for Flux purposes, supporting v prefix means adding ambiguity. When an ImageRepository has both tags pushed - v1.0.1 and 1.0.1 which one wins?
For Helm, it definitely is not supported, based on a quick search of issues in the helm-controller repo.
In a repo that switches from v-prefixed to non-v-prefixed versions I guess it is still easy enough to tell which one wins, v1.0.1 or 1.0.2, but if there is ambiguity in the tags, then Flux is maybe going to fail to select a latest image.
If you pushed both tags v1.0.1 and 1.0.1 with identical content, it might not matter, but in some cases I'm sure it could matter, and in the worst case (I expect this behavior, haven't tested though) Flux will not select any image when there are multiple image candidates that could be the latest.
When the question comes up, to avoid ambiguity in the answer, I think we always answer that it's not supported because semver.org unambiguously states that the v is not part of the strict semver spec, (but apparently ymmv.)
If anyone noticed the flux-e2e guide, I think that's an appropriate place for information like this - I don't have the bandwidth to file a PR for this right now, nor sure where else we could put a note about v prefixes in the docs that it would be easily discoverable.
On https://github.com/Masterminds/semver it looks like a tag like
v1.2.3
would be a valid SemVer tag under theSemVer
ImagePolicy. I would like to see this fact explicitly reflected (or explicitly demented, maybe with a workaround regexp if necessary) on the documentation pages for Flux.The text was updated successfully, but these errors were encountered: