Open flbla opened 1 week ago
I suspect you are subscribed to images using something like a tag selector. When Kargo selects images using such a selector, it relies solely on the tag list provided by the registry API, which is a simple list containing strings. Because of this, it has no idea about the image type (which would require at least one additional request per listed tag).
While I see us benefiting from an image type selector complementary to the existing platform selector at some point, I would not see us enabling this by default, as it changes the complexity from O(1)
to O(n)
.
Until we have such a feature, I can see a couple of ways for you to work around this problem for container images:
allowTags
regex expression, as I can see a pattern of v1.0.0.
versus 1.0.0
.For the Helm chart discovery part, the quick fix would be for us to ignore anything that isn't a strict SemVer (which is how helm
itself determines what is and isn't a chart): https://github.com/helm/helm/blob/v3.16.1/pkg/registry/client.go#L682-L690
I will draft a pull request to enforce this.
Checklist
kargo version
.Description
I have an OCI repository with Charts and Images in it. When I create a warehouse (image or chart) it display charts AND images versions.
Screenshots
Steps to Reproduce
An OCI repo with charts and images in it. Create a chart warehouse connected to this repo. => Images version are also displayed
Version