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

Remove nodegroupset processor from clusterapi #5375

Merged
merged 3 commits into from
Jan 13, 2023

Conversation

elmiko
Copy link
Contributor

@elmiko elmiko commented Dec 19, 2022

Which component this PR applies to?

cluster-autoscaler

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

As agreed by the Cluster API community (see this recording for more context), we are removing the inherently ignored labels from the nodegroupset processor for clusterapi. This is being done because the Cluster API provider can be deployed to many different infrastructure providers, and as such we would prefer to instruct our users on the usage of balancing ignore labels instead of carrying them as part of the autoscaler.

Which issue(s) this PR fixes:

Fixes #5374

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Inherently ignored labels for balancing similar node groups with the Cluster API provider has been removed, please use the `--balancing-ignore-label` flag to add any labels which must be ignored.

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

- [Usage]: See README.md file in the Cluster API provider directory of the Cluster Autoscaler.

@k8s-ci-robot k8s-ci-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. 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 Dec 19, 2022
@elmiko
Copy link
Contributor Author

elmiko commented Dec 19, 2022

/hold for cluster api reviewers to have a look

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 19, 2022
@k8s-ci-robot k8s-ci-robot requested a review from detiber December 19, 2022 19:38
@k8s-ci-robot k8s-ci-robot requested a review from shysank December 19, 2022 19:38
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Dec 19, 2022
@arunmk
Copy link

arunmk commented Dec 20, 2022

This looks good to me
/lgtm
/approve

@elmiko
Copy link
Contributor Author

elmiko commented Dec 20, 2022

@enxebre i added some more text about the decision and a link to the discussion we had about it. let me know if that answers the questions.

@elmiko elmiko force-pushed the remove-capi-ngsp branch 2 times, most recently from 03bcaca to 217a61c Compare December 20, 2022 18:07
@x13n
Copy link
Member

x13n commented Jan 9, 2023

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jan 9, 2023
@enxebre
Copy link
Member

enxebre commented Jan 9, 2023

Thanks @elmiko! FWIW one of the main values of CAPI is that is could agnostic for consumers, so moving cloud provider detail up to the autoscaler is unfortunate in that sense. Let's keep that in mind as we keep moving design forward.

@elmiko
Copy link
Contributor Author

elmiko commented Jan 9, 2023

moving cloud provider detail up to the autoscaler is unfortunate in that sense. Let's keep that in mind as we keep moving design forward.

thanks @enxebre , and yes i agree

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 10, 2023
this change will make navigating the readme easier for users.
this change adds a section to the readme that provides advice for
clusterapi users about which labels they might want to ignore when using
the balance similar node groups flag on various cloud providers.
as discussed with the cluster api community[0], the nodegroupset
processor is being removed from the clusterapi provider implementation
in favor of instructing our community on the use of the
--balancing-ignore-label flag. due to the wide variety of provider
infrastructures that clusterapi can be deployed on, we would prefer to
not encode all of these labels in the autoscaler itself. see the linked
recording for more information.

[0] https://www.youtube.com/watch?v=jbhca_9oPuQ
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 12, 2023
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 12, 2023
@elmiko
Copy link
Contributor Author

elmiko commented Jan 12, 2023

@arunmk , @enxebre , or @x13n , might i trouble for another review?

we have had enough time for reviews from the capi community, i am removing the hold.

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 12, 2023
@x13n
Copy link
Member

x13n commented Jan 13, 2023

/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 Jan 13, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: arunmk, elmiko, x13n

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 merged commit 1e1e88d into kubernetes:master Jan 13, 2023
@elmiko elmiko deleted the remove-capi-ngsp branch January 13, 2023 15:28
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/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. 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.

Cluster Autoscaler Cluster API provider should not carry inherent balancing ignore labels
5 participants