New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Harbor does not differentiate tags between images and OCI Charts within same repository #20383
Comments
It is all fundamentally stored as artifact in the db since it's all OCI-compatible products. We prefer you use tags to do the differentiation. |
Thanks for reviewing my issue, but the problem is that I cannot do any differentiation because the charts and images are sharing the same tag and they are pulled from online repositories. So I am not in control of the tags. Could you please re-open/re-evaluate For example the vsphere cpi, provided by VMware which introduces a new version every kubernetes release together with a new chart with the same version.
|
Hi @PoudNL, I understand your concern. However, in the registry, the combination of repository and tag serves as the unique identifier for any individual OCI artifact. You cannot share the same tag between different types of artifacts, such as charts and images. This structure is fundamental in the OCI registry, and I believe others follow the same principle, as mentioned in the ECR documentation: "For each repository, each tag key must be unique, and each tag key can have only one value." I suggest using different projects or tags to distinguish them in Harbor |
I am not very familiar with any other registries and did not test it in others. And i understand the current logic/decisions. But I still disagree the choice, based on what we see in the development world. There are just a lot of charts/images that share the same tag from solutions with a large user base. |
Expected behavior and actual behavior:
When we push an OCI helm chart with (for example) version v5.2.1 to a repository that already contains an docker image with tag v5.2.1, the tag is removed from the docker image and applied to the OCI helm chart.
It also happens vice versa, when you already have an OCI Helm chart and push a docker image with the same version, the tag is removed from the Helm Chart.
What I expect is that Harbor differentiates between an OCI Helm chart and a Docker image when it comes to tagging. Now it is not possible to have the helm chart and the docker image in the same repository withing Harbor.
Steps to reproduce the problem:
Versions:
The text was updated successfully, but these errors were encountered: