-
Notifications
You must be signed in to change notification settings - Fork 4k
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
cluster-autoscaler helm chart has '-chart' in its name #3475
Comments
Hi @llamahunter, thanks for opening the issue. This is obviously not ideal, however as mentioned in the PR to change the chart name #3393, there are technical reasons for this change having been made as the releases conflicted with existing releases for the cluster autoscaler itself. The chart-releaser action hasn't found a solution for this yet helm/chart-releaser#65. Despite us using a manual process for updating the I'm happy to discuss how we can work around the limitations to potentially get back to releasing the chart under the name |
I think changing the chart versioning is the source of the problem, no? Why did you go from 8.0.0 to 1.0.2? Why not just continue on with the same name and version scheme, since the chart is almost entirely unchanged? That is what happened with other charts that moved out of helm/stable. No duplicate tags that way. |
We also don't want people thinking that a new release of the Cluster Autoscaler itself has been cut when it's only a new cut of the chart. I have an idea of how to solve this by naming the releases seperately to the helm chart name, but we won't be able to use the current releaser action to achieve that. |
If that's the case, why in the former chart location did you go from 7.3.4 to 8.0.0 with NO change in the chart or autoscaler?? |
In any event, changing the name of every k8s object created by this chart to now include the '-chart' suffix seems like a huge migration headache for users, especially since virtually nothing else has changed. |
I understand the pain point you're pointing out, I'm just trying to make clear the reasons for the change being made, and a potential path forward to solve it along with the constraints that has to work within. If other people want to come up with a solution that works within those constraints, that would be great, I'd be more than happy to review it. Otherwise, as mentioned above, I have an idea of how to solve this but I can't make any promises on timescales. I wasn't involved with the chart when it was part of |
I think the code in _helpers.tpl could be changed to strip off the '-chart' suffix from the .Chart.Name, or there could be a new variable introduced called correctedChartName with a default of 'cluster-autoscaler' used with higher priority than .Chart.Name if it is set., e.g. in values.yaml
in _helpers.tpl
|
Like I said earlier, I could set the |
The -chart post-fix should be able to be removed using the new |
Brilliant, thanks very much for pointing it out @stevehipwell! I'll get on trying that out this evening. |
Sorry, this action doesn't have a generic pass through for flags, I just checked and opened an issue to get the action updated. |
What's the status on renaming the chart not to have '-chart' in the name? |
@llamahunter I'd assume the blocker is still helm/chart-releaser-action#37 as the issues hasn't been closed and there hasn't been a release. |
So is everyone just suffering through the chart rename of all the resources? Should I create a PR for #3475 (comment) in the meantime to work around the naming issue? |
@llamahunter I'd suggest following up on helm/chart-releaser-action#37 as this would allow the chart to be named correctly. |
@gjtempleton I've opened a PR at kubernetes-sigs/descheduler#436 to rename the descheduler chart using the latest helm/chart-releaser-action@v1.1.0 release which should be of interest. @llamahunter I think this is the way to go. |
Thanks for the heads up @stevehipwell, much appreciated. @llamahunter does #3679 look like it'll achieve what you're looking for? |
Yes... commented in PR. Thx! |
/reopen Won't be fully resolved until #3716 is merged as this will publish it to this repo's |
@gjtempleton: Reopened this issue. 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. |
#3716 has been merged, I've validated locally, but will keep this issue open until you've confirmed this has unblocked you @llamahunter |
@gjtempleton the chart is showing up correctly for me. It would be useful if you could add the autoscaler repo into https://artifacthub.io/. |
@stevehipwell with a helping hand this is now published on Artifact Hub, however, you may want to be aware of the reason I've had to raise #3719 as I notice the descheduler repo is preparing to switch over the naming as well, hopefully you can avoid the need to go back and mark the old release as deprecated as I've had to do here. |
I work with llamahunter. This unblocks us. Thanks so much! |
Thanks for confirming! /close |
@gjtempleton: Closing this issue. 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. |
It seems bad form for a chart to include the word 'chart' in its name. It seems worse to then name every object the chart creates with 'chart' in the name. And it seems especially bad to RENAME the chart when moving it from one repo to another (i.e. the helm/stable chart was called 'cluster-autoscaler', not 'cluster-autoscaler-chart'), causing all existing named k8s objects to need to be destroyed and re-created, for no good reason.
Yes, I could set the 'nameOverride' and/or 'fullnameOverride' variables to work around this issue, but I really should not need to do so.
Please rename the chart to 'cluster-autoscaler'.
The text was updated successfully, but these errors were encountered: