-
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
Problems with charts with spaces in their name #3758
Comments
Problem seems to be in the backend, not the dashboard. Asset-syncer currently stores the charts with slashes encoded, but spaces unencoded. At least for Helm + Harbor here. Helm specifies that chart names must only contain alphanumeric characters, underscore, dash or dot. See Helm general conventions.
Same error message appears in Kubeapps dashboard when chart name is synced having no Therefore, I suggest two possibilities:
I don't think either option would mean backwards compatibility issues, as existing charts would not be affected, and charts with spaces don't work currently. |
Thanks for the report! Yep, that's true, Helm does not allow installing charts with spaces as part of their names. I personally think that rendering the Helm error output is ok, as it is a plugin-specific concern. My concerns are twofold:
Dropping some initial ideas/thoughts:
|
@antgamdia This is due to the frontend sending correctly the ID with decoded spaces (not Probably the cleanest solution by now is something like:
This means that we allow to list packages with spaces, and also to click "Deploy" in Dashboard. In those cases, we throw the error from Helm. |
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Description:
Packages including spaces as part of their names cannot be displayed in Kubeapps (well, the pkg details view at least).
Steps to reproduce the issue:
kubeapps
helm create demo
, then edit theChart.yaml
file to sth likename: foo bar
helm package demo
foo bar.tgz
to the Harbor instancehttps://demo.goharbor.io/chartrepo/kubeapps
Describe the results you received:
Describe the results you expected:
Details should be displayed, as usual.
Additional information you deem important (e.g. issue happens only occasionally):
It is probably due to a missing encoding of the spaces (
), as we are actually doing with the
%20
instead of/
(%2F
).I did face an issue with encoding slashes in the past, so do not hesitate to ping me for further details.
Version of Helm, Kubeapps and Kubernetes:
N/A (current devel version)
The text was updated successfully, but these errors were encountered: