-
Notifications
You must be signed in to change notification settings - Fork 636
WIP ✨ feat: Implement autoscaling from zero by auto-populating AWSMachineTemplate capacity #5711
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
base: main
Are you sure you want to change the base?
WIP ✨ feat: Implement autoscaling from zero by auto-populating AWSMachineTemplate capacity #5711
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Hi @LiangquanLi930. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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-sigs/prow repository. |
|
/ok-to-test |
f1ee365 to
3be8f4d
Compare
01be987 to
915f55b
Compare
915f55b to
b3850d1
Compare
| return ctrl.NewControllerManagedBy(mgr). | ||
| For(&infrav1.AWSMachineTemplate{}). | ||
| WithOptions(options). | ||
| WithEventFilter(predicates.ResourceHasFilterLabel(mgr.GetScheme(), log.GetLogger(), r.WatchFilterValue)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| WithEventFilter(predicates.ResourceHasFilterLabel(mgr.GetScheme(), log.GetLogger(), r.WatchFilterValue)). | |
| WithEventFilter(predicates.ResourceNotPausedAndHasFilterLabel(mgr.GetScheme(), log.GetLogger(), r.WatchFilterValue)). |
| // Extract node info from AMI if available | ||
| nodeInfo := &infrav1.NodeInfo{} | ||
| amiID := template.Spec.Template.Spec.AMI.ID | ||
| if amiID != nil && *amiID != "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
That then requires to lookup the kubernetes version first, which should be set at the parent object (you should be able to get it via the owner reference).
Also this may lead to requiring updates so we should remove not skip in line 72 if ami is not set.
c072937 to
20bad08
Compare
|
/test pull-cluster-api-provider-aws-e2e |
03ec3b9 to
3c89048
Compare
b0eae44 to
6ab7428
Compare
6df5996 to
5b5a139
Compare
af3844f to
8371031
Compare
|
/test pull-cluster-api-provider-aws-e2e-blocking |
|
/test pull-cluster-api-provider-aws-e2e |
|
/test pull-cluster-api-provider-aws-e2e-blocking |
56615b5 to
3bf0acb
Compare
|
/test pull-cluster-api-provider-aws-e2e |
|
@LiangquanLi930: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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-sigs/prow repository. I understand the commands that are listed here. |
3bf0acb to
6897a1f
Compare
6897a1f to
ca67a57
Compare
✨ Implement autoscaling from zero by auto-populating AWSMachineTemplate capacity
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR implements the Cluster API autoscaling from zero proposal for CAPA by adding a controller that automatically populates
AWSMachineTemplate.Status.Capacitywith instance type information.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Checklist:
Release note: