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

rancher-cloudprovider: Improve node group discovery #5361

Merged
merged 1 commit into from
Dec 12, 2022

Conversation

ctrox
Copy link
Contributor

@ctrox ctrox commented Dec 9, 2022

Which component this PR applies to?

cluster-autoscaler

What type of PR is this?

/kind bug

What this PR does / why we need it:

Previsouly the rancher provider tried to parse the node spec.providerID to extract the node group name. Instead, we now get the machines by the node name and then use a rancher specific label that should always be on the machine. This should work more reliably for all the different node drivers that rancher supports.

Which issue(s) this PR fixes:

Fixes #5140

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


Previsouly the rancher provider tried to parse the node `spec.providerID`
to extract the node group name. Instead, we now get the machines by the
node name and then use a rancher specific label that should always be
on the machine. This should work more reliably for all the different
node drivers that rancher supports.

Signed-off-by: Cyrill Troxler <[email protected]>
@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 9, 2022
@k8s-ci-robot k8s-ci-robot requested a review from feiskyer December 9, 2022 10:20
@k8s-ci-robot k8s-ci-robot requested a review from x13n December 9, 2022 10:20
@x13n
Copy link
Member

x13n commented Dec 9, 2022

/lgtm

Although for changes like this I think it would make more sense to uncomment entries in your OWNERS file, so that rancher-specific changes can be reviewed & approved by the people listed there.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 9, 2022
@ctrox
Copy link
Contributor Author

ctrox commented Dec 12, 2022

Agreed, but aren't OWNERS required to be members of the Kubernetes org? If so, I guess I'm looking for 2 sponsors ;)

@ctrox
Copy link
Contributor Author

ctrox commented Dec 12, 2022

/assign @towca

@x13n
Copy link
Member

x13n commented Dec 12, 2022

Ah, good point. I guess after reviewing this PR I could qualify as one. You'd still need someone else, from another company.

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
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ctrox, 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 Dec 12, 2022
@k8s-ci-robot k8s-ci-robot merged commit db4de87 into kubernetes:master Dec 12, 2022
@ctrox ctrox mentioned this pull request Mar 28, 2023
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. area/cluster-autoscaler cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot deploy cluster-autoscaler with Rancher RKE2
5 participants