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
Chart repository index allows to add multiple charts of the same version #3230
Comments
yes, feel free to provide a fix @hypnoglow! Duplicate entries with the same version should not exist. One way to fix this would be to add a prompt to |
@bacongobbler , I'm working on the index code. I have a question: should we already remove deprecated format support, or that comments are falsy, and we should remove that support only in helm >= 3.0? |
If it’s in there and there’s a code path in Helm 2.0, it shouldn’t be removed. :) If it’s dead code, go for it! I’d suggest ripping it out in a separate PR though. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
duplicate of #2606 |
An oversimplified example:
Now index contains multiple records for the same version of the chart. Note that even their digests are same, but I think even in case of different digests index should not contain multiple records of the same version.
This makes all commands involving chart repository ambiguous/incorrect:
This behavior is caused by
IndexFile.Add()
inpkg/repo/index.go
currently just appending a new version to the versions slice without any check. But is there any reason for this? I'm curious because I'm maintaining a helm plugin for chart repositories, and my index code is based onIndexFile
implementation inpkg/repo
package.@bacongobbler I think #2606 is kinda related (I think the Issue author meant the same problem for repositories but not for charts), and you said that this behavior is undesirable. Am I correct? Should I get my feet wet with
pkg/repo
and provide a fix?The text was updated successfully, but these errors were encountered: