Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/cluster-autoscaler] Use labels recommended by Helm #15695

Merged
merged 1 commit into from
Jul 25, 2019

Conversation

rifelpet
Copy link
Contributor

What this PR does / why we need it:

Updates the resources in cluster-autoscaler to use standard label keys recommended by helm.

See https://helm.sh/docs/chart_best_practices/#standard-labels

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

  • N/A

Special notes for your reviewer:

Since the Deployment's selector is immutable, this is a breaking change and will require a deletion and recreation of the deployment, hence the major version bump.

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • DCO signed
  • Chart Version bumped
  • Variables are documented in the README.md
  • Title of the PR starts with chart name (e.g. [stable/chart])

@helm-bot helm-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 18, 2019
@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jul 18, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @rifelpet. Thanks for your PR.

I'm waiting for a helm member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@rifelpet rifelpet force-pushed the cluster-autoscaler-labels branch from 9ad63ad to 71756af Compare July 18, 2019 16:51
@helm-bot helm-bot added the Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). label Jul 18, 2019
@rifelpet rifelpet force-pushed the cluster-autoscaler-labels branch 2 times, most recently from 6c561ff to 76da11a Compare July 18, 2019 18:25
@paulczar
Copy link
Collaborator

/ok-to-test

what does an upgrade from previous version look like? are there any special steps needed to deal with the changing labels?

@k8s-ci-robot k8s-ci-robot added ok-to-test and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 23, 2019
@rifelpet rifelpet force-pushed the cluster-autoscaler-labels branch from 76da11a to 5f2b31f Compare July 23, 2019 05:39
@rifelpet
Copy link
Contributor Author

rifelpet commented Jul 23, 2019

The deployment's label selector is immutable, so a helm del --purge will be required prior to the helm upgrade. This means the cluster-autoscaler won't be running for that period of time.

@yurrriq
Copy link
Collaborator

yurrriq commented Jul 25, 2019

@rifelpet, could you please resolve the Chart.yaml conflict, and mention the upgrade path in the README? With that in place, I'm fully supportive of this change.

You might also consider using some label helpers like I did here to DRY things up a bit.

@yurrriq
Copy link
Collaborator

yurrriq commented Jul 25, 2019

/assign

See https://helm.sh/docs/chart_best_practices/#standard-labels

Since the Deployment's selector is immutable, this is breaking change and will require a deletion and recreation, hence the major version bump.

Signed-off-by: Peter Rifel <[email protected]>
@rifelpet rifelpet force-pushed the cluster-autoscaler-labels branch from 5f2b31f to f30809d Compare July 25, 2019 13:56
@rifelpet
Copy link
Contributor Author

@yurrriq the conflict has been resolved and the readme updated

@yurrriq
Copy link
Collaborator

yurrriq commented Jul 25, 2019

/approve

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 25, 2019
@yurrriq
Copy link
Collaborator

yurrriq commented Jul 25, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 25, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rifelpet, yurrriq

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

@yurrriq
Copy link
Collaborator

yurrriq commented Jul 25, 2019

I'm new to this, but I think we're just waiting on prow to merge at this point.. Thanks, @rifelpet!

@k8s-ci-robot k8s-ci-robot merged commit 5e4e493 into helm:master Jul 25, 2019
gypsydiver pushed a commit to gypsydiver/charts that referenced this pull request Jul 25, 2019
See https://helm.sh/docs/chart_best_practices/#standard-labels

Since the Deployment's selector is immutable, this is breaking change and will require a deletion and recreation, hence the major version bump.

Signed-off-by: Peter Rifel <[email protected]>
ThoTischner pushed a commit to bitsbeats/charts that referenced this pull request Aug 13, 2019
See https://helm.sh/docs/chart_best_practices/#standard-labels

Since the Deployment's selector is immutable, this is breaking change and will require a deletion and recreation, hence the major version bump.

Signed-off-by: Peter Rifel <[email protected]>
landorg pushed a commit to landorg/charts that referenced this pull request Aug 19, 2019
See https://helm.sh/docs/chart_best_practices/#standard-labels

Since the Deployment's selector is immutable, this is breaking change and will require a deletion and recreation, hence the major version bump.

Signed-off-by: Peter Rifel <[email protected]>
Signed-off-by: Roland Gritzer <[email protected]>
kengou pushed a commit to kengou/charts that referenced this pull request Sep 18, 2019
See https://helm.sh/docs/chart_best_practices/#standard-labels

Since the Deployment's selector is immutable, this is breaking change and will require a deletion and recreation, hence the major version bump.

Signed-off-by: Peter Rifel <[email protected]>
ramkumarvs pushed a commit to yugabyte/charts-helm-fork that referenced this pull request Sep 30, 2019
See https://helm.sh/docs/chart_best_practices/#standard-labels

Since the Deployment's selector is immutable, this is breaking change and will require a deletion and recreation, hence the major version bump.

Signed-off-by: Peter Rifel <[email protected]>
gaida pushed a commit to gaida/charts that referenced this pull request Oct 3, 2019
See https://helm.sh/docs/chart_best_practices/#standard-labels

Since the Deployment's selector is immutable, this is breaking change and will require a deletion and recreation, hence the major version bump.

Signed-off-by: Peter Rifel <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). lgtm Indicates that a PR is ready to be merged. ok-to-test 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.

5 participants