-
Notifications
You must be signed in to change notification settings - Fork 707
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
Return the repo name in a carvel a pkg summary #4716
Conversation
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
+1 for postponing a longer term solution using the new Repo API, but why not kill two birds with one stone and use the current approach in the Helm/Flux packages to encode it in the It was done that way in the other plugins for two reasons:
Let me know if there's a reason you chose to encode it into the
Just keen to understand why not do it consistently with the other plugins (using the Thanks either way! |
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
✅ Deploy Preview for kubeapps-dev canceled.
|
In fact, it was my first option, but then I noticed it would change the However, I'm 100% for using this FQDN as the id, so I have just pushed those changes (still missing tests, will address them soon, though) |
if len(chartIDParts) != 2 { | ||
return "", status.Errorf(codes.InvalidArgument, "Incorrect package ref dentifier, currently just 'foo/bar' patterns are supported: %s", chartID) | ||
packageIDParts := strings.Split(unescapedPackageID, "/") | ||
if len(packageIDParts) != 2 { |
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.
FWIW (not for this PR), but this is the code that is very much related to #4284
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
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.
Excellent, thanks
Description of the change
As per #4543, it is now possible to populate the chip with the repo name of a carvel package. This PR just replicates the current approach for the Helm/Flux packages, that is, it does not introduces any big change with regards to how repos are referenced.
IMO, it should be carried out in a separate PR and leveraging the new Repo API.
Benefits
Carvel packages will also have a repo name, like the packages from Helm. Example:
Possible drawbacks
It has been implemented just returning
Name: repo/pkgName
, for instance:Name: tce-repo/grafana
in the AvailablePackageSummary response, which is not consistent with the rest of the packages.However, since we are going to refactor it as soon as we start integrating the new Repos APIs, I don't think it is such a big deal, but willing to hear your opinion.
Applicable issues
Additional information
Still a draft as I haven't written/adapted the tests yet.