-
Notifications
You must be signed in to change notification settings - Fork 87
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
Scale from and to 0 support for autoscaler for VPC cluster #1523
Conversation
✅ Deploy Preview for kubernetes-sigs-cluster-api-ibmcloud ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hi @KeerthanaAP. 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/test-infra repository. |
/cc @Karthik-K-N |
/ok-to-test |
capacity, err := getIBMVPCMachineCapacity(tc.VPCMachineTemplate) | ||
if tc.expectErr { | ||
if err == nil { | ||
t.Fatal("getIBMPowerVSMachineCapacity expected to return an error") |
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.
t.Fatal("getIBMPowerVSMachineCapacity expected to return an error") | |
t.Fatal("getIBMVPCMachineCapacity expected to return an error") |
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.
Done
@KeerthanaAP Do a sample deployment of above logic /cc @Karthik-K-N |
@KeerthanaAP Update Release note section |
|
||
func (r *IBMVPCMachineTemplateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { | ||
log := ctrl.LoggerFrom(ctx) | ||
log.V(1).Info("Reconciling IBMVPCMachineTemplate") |
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.
May I know whats the default log level? can this be simply log.Info().
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.
I think default log level is 1.
Have changed it to log.Info().
5175b06
to
4f3dd0e
Compare
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.
One change otherwise LGTM
Deployment
Deployment Deployed the below v1beta1 config. Created this v1beta1 config after removing the annotation in above v1beta1 v1beta1.yaml
|
4f3dd0e
to
6776eb5
Compare
/retest all |
@Prajyot-Parab: The
The following commands are available to trigger optional jobs:
Use
In response to this:
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. |
/test all |
/cc @Karthik-K-N ptal final look. |
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.
/lgtm
edb4515
to
fda3f59
Compare
/retest |
fda3f59
to
d49f29b
Compare
/retest |
/retest-required |
d49f29b
to
fbc8ab0
Compare
/retest |
fbc8ab0
to
6910468
Compare
d9f6594
to
0912a42
Compare
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.
Thank you, One small change, Otherwise LGTM
0912a42
to
6606eb8
Compare
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.
/lgtm
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.
/hold
for @Prajyot-Parab 's review
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Karthik-K-N, KeerthanaAP, mkumatag, Prajyot-Parab 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 |
/unhold |
What this PR does / why we need it:
This PR add the chances to scale from and to 0 support for autoscaler for VPC cluster.
Added a IBMVPCMachineTemplateStatus with capacity field and a separate controller to update the capacity.
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 #959
Special notes for your reviewer:
/area provider/ibmcloud
Release note: