Skip to content
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 cluster-autoscaler-chart Chart name to cluster-autoscaler #3679

Merged
merged 1 commit into from
Nov 23, 2020

Conversation

gjtempleton
Copy link
Member

@gjtempleton gjtempleton commented Nov 9, 2020

Fixes #3475

Update helm/chart-releaser action to leverage new functionality of the chart releaser action allowing custom overrides of the published chart artifact separate from the naming of the chart

Tested successfully on my fork here: https://github.com/gjtempleton/autoscaler/releases/tag/cluster-autoscaler-chart-2.0.0

This will keep the names of the build artifacts consistent with the existing ones for the 1.X.X releases of the chart, but update the naming in the published chart to be neater and consistent with best practices.

I've also included a note in the readme to warn users.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 9, 2020
@gjtempleton gjtempleton changed the title Return Cluster-Autoscaler Chart name to cluster-autoscaler Return cluster-autoscaler-chart Chart name to cluster-autoscaler Nov 9, 2020
@llamahunter
Copy link

Yeah, that looks like it will do the trick. Many things in _helpers.tpl are driven off .Chart.Name, and so long as that is set the same as it was before migration from the legacy to new repo location, all the resources should not go through a destroy/create cycle.

Thx very much!

sources:
- https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler
type: application
version: 1.1.1
version: 2.0.0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm.. unclear if this should be 9.0.0 or something, tho. Since the last version was 8.0.0 before the chart took a detour through the other name.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's a good point and would probably make migration from the deprecated chart easier on users.

I'll update this to 9.0.0 and update the docs to make clear why this is happening as well.

@stevehipwell
Copy link
Contributor

@gjtempleton you could modify you checkout step to look like the following so you don't need a seperate fetch step.

- name: Checkout
  uses: actions/checkout@v2
  with:
    fetch-depth: 0

Also the example has a additional install helm step that may be required?

@stevehipwell
Copy link
Contributor

@gjtempleton you could modify you checkout step to look like the following so you don't need a seperate fetch step.

- name: Checkout
  uses: actions/checkout@v2
  with:
    fetch-depth: 0

Also the example has a additional install helm step that may be required?

I can confirm that the additional helm step is required.

Update helm/chart-releaser action to achieve this
@stevehipwell
Copy link
Contributor

Is there a roadmap for when this might be released?

@gjtempleton
Copy link
Member Author

@stevehipwell I can't commit to a timeline as it'll need approval from one of the other repo owners

/assign @MaciekPytel

@llamahunter
Copy link

Thx for the update. Our upgrades to k8s 1.18 are sort of on hold until this gets merged.

@sc250024
Copy link
Contributor

Thank you @gjtempleton !

@llamahunter
Copy link

still waiting on this

@stevehipwell
Copy link
Contributor

stevehipwell commented Nov 19, 2020

The parallel kubernetes-sigs/descheduler#436 was merged yesterday if that helps?

Copy link
Contributor

@mwielgus mwielgus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 23, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gjtempleton, llamahunter, mwielgus

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 23, 2020
@k8s-ci-robot k8s-ci-robot merged commit 383a506 into kubernetes:master Nov 23, 2020
@gjtempleton gjtempleton deleted the CA-Chart-Rename branch November 24, 2020 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cluster-autoscaler helm chart has '-chart' in its name
7 participants