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
Bug 1880246:Entry keys in aggregated Helm index are appended with the name of source Helm repo #6753
Conversation
…rce Helm repo The introduced convention enables that all charts with the same name, but in different source Helm repo, appear in the aggregated index file under the name following the pattern: `foo-chart--my-repo`, where `my-repo` is the name of `HelmChartRepository` available in the cluster.
@pedjak: This pull request references Bugzilla bug 1880246, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retest |
/bugzilla refresh |
@pedjak: This pull request references Bugzilla bug 1880246, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
for _, helmRepo := range helmRepos { | ||
idxFile, err := helmRepo.IndexFile() | ||
if err != nil { | ||
return nil, err | ||
} | ||
indexFiles = append(indexFiles, idxFile) | ||
for key, entry := range idxFile.Entries { | ||
indexFile.Entries[key+"--"+helmRepo.Name] = entry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we add '~~' as a delimiter between the two names to make it more unique?
indexFile.Entries[key+"--"+helmRepo.Name] = entry | |
indexFile.Entries[key+"~~"+helmRepo.Name] = entry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this char is not alowed - only letters, digits and dash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, no problem.
/lgtm |
/hold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Tested the backend changes with UI changes in #6761. Works well.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akashshinde, pedjak, rohitkrai03 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
@pedjak: All pull requests linked via external trackers have merged: Bugzilla bug 1880246 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The introduced convention enables that all charts with the same name, but
in different source Helm repo, appear in the aggregated index file under
the name following the pattern:
foo-chart--my-repo
, wheremy-repo
is the nameof
HelmChartRepository
available in the cluster.