-
Notifications
You must be signed in to change notification settings - Fork 706
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
Kubeapps not handling semver 2.0 tags (+w.x.y-z) #1220
Comments
Thanks @kandeshvari . It appears to be a definite bug. Triaging and renaming to get it fixed ASAP. Let me know if it's something you'd like to work on, otherwise it'll get picked up when we have bandwidth. Thanks again for creating the issue! |
@absoludity sure, why not :) But I need some advice where to start from? |
It appears that you have hit two different bugs. First, you are seeing the "Choose helm repo" form because the request to automatically retrieve the repo for your application will look something like:
As you can see, the version is in the query of the request. The problem is that the symbol That code is here: https://github.com/kubeapps/kubeapps/blob/master/dashboard/src/shared/Chart.ts#L51 But we would need to probably fix the encoding in these URLs too: https://github.com/kubeapps/kubeapps/blob/master/dashboard/src/shared/url.ts#L22 Then, the second bug is that, when checking if a chart belongs to a repository (that's what happens when you select a registry), we are directly accessing the URL of the https://github.com/kubeapps/kubeapps/blob/master/dashboard/src/actions/repos.ts#L217 We changed that route to ensure authentication, that's why the server returns a try {
- await axios.get(url.api.charts.listVersions(`${repo}/${chartName}`));
+ Chart.fetchChartVersions(`${repo}/${chartName}`);
dispatch(receiveRepo(appRepository));
return true;
} catch (e) { I hope that's information enough for you to check if that solves your issue! If you need instructions of how to setup a dev enviroment we have some docs here: https://github.com/kubeapps/kubeapps/blob/master/docs/developer/dashboard.md |
Thank you! I'll work on it. |
I use semver tags in chart versions like 0.1.14+2.1.0-5
It seems like kubeapps can't process semver tag (https://semver.org/#spec-item-10) properly and it leads to two bugs:
When I use versions for that chart without tag - all is ok.
The text was updated successfully, but these errors were encountered: