-
Notifications
You must be signed in to change notification settings - Fork 33
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
Fix horizontal scaling for ReplicationGroups #136
Fix horizontal scaling for ReplicationGroups #136
Conversation
Hi @gfrey. Thanks for your PR. I'm waiting for a aws-controllers-k8s 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. |
This will set the value for the number of node groups of a ReplicationGroup to the value given in the Spec, thereby enabling horizontal scaling. Fixes aws-controllers-k8s/community#2080.
d1b2b99
to
43a3c54
Compare
I forced push an updated commit message (I had vertical and horizontal scaling mixed up). |
Converted to a draft, as I can't properly verify the fix. Even without it the test_rg_scale_horizontally test works just fine. When I noticed the issue, I had updated the Let me first try to recreate the issue. |
I've tested this with a resource like the following:
I'm not sure, why the |
/ok-to-test |
if respRG.NodeGroups != nil && ko.Spec.NumNodeGroups != nil { | ||
*ko.Spec.NumNodeGroups = int64(len(respRG.NodeGroups)) | ||
} |
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.
Nice catch!
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: a-hilaly, gfrey 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 |
This will set the value for the number of node groups of a ReplicationGroup to the value given in the Spec, thereby enabling horizontal scaling.
Fixes aws-controllers-k8s/community#2080.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.