-
Notifications
You must be signed in to change notification settings - Fork 431
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
Custom data model fix #3134
Custom data model fix #3134
Conversation
|
Welcome @BrennenMM7! |
Hi @BrennenMM7. 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. |
37445d3
to
8c67bbb
Compare
/ok-to-test |
Should we consider only doing this when the MachinePool has the externally managed replicas annotation? I'd be worried about increasing the number of API calls for users that don't need this as this will now make a PUT API call per AzureMachinePool every 10 minutes or so (or whenever token is refreshed, I forget the exact number) which might not scale well for very large clusters with hundreds of MachinePools (granted this will be a problem for users with externally managed replicas too but if we can at least reduce the blast radius that would be an improvement). |
I've added an if block around the return escape if nothing has changed, allowing to have two different behaviors for patching the VMSS object based on externally managed autoscaler annotations. This should limit the number of API calls for users not utilizing an autoscaler |
/retest |
@BrennenMM7 build is failing, PTAL |
/retest |
d811f69
to
937c695
Compare
@CecileRobertMichon Fixed the build failures and squashed commits again, should be good to go. 👍 |
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 aside from comment on annotation const and failing unit test job, thanks again and sorry for all the back and forth on this one
58322d2
to
dc43931
Compare
/hold cancel please squash! |
9341b89
to
9e26a5e
Compare
/test pull-cluster-api-provider-azure-e2e |
Can I get a tag on this PR please 😄 |
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 don't fully understand the problem, will go back try reproducing the error.
However, I had some doubts and questions jotted down below after reviewing the code.
/lgtm @nawazkh I think I've addressed all your questions/comments, let me know if you're good to remove the hold |
LGTM label has been added. Git tree hash: 6e7cb98d401329488f5e99e47bdfcf68e0e0bbd3
|
Thanks for the updates @CecileRobertMichon ! Good to remove the hold! |
/hold cancel |
@mboersma: #3134 failed to apply on top of branch "release-1.6":
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. |
/cherry-pick release-1.7 |
@CecileRobertMichon: new pull request created: #3205 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. |
@BrennenMM7 did this PR fix #2683 as well? Thank you! cc @primeroz |
@jackfrancis Yes this should resolve #2683 as the watcher will ensure that the VMSS always has the latest bootstrap token inside the model of the VMSS. 👍 |
@BrennenMM7 thank you! I'll close #2683 and advise that the original reporter of that issue validate the fix with v1.8.0 after it is released (next week), because this PR will be included in that release. Thanks again for the fix! |
What type of PR is this?
What this PR does / why we need it:
When Bootstrap token refreshes the VMSS needs to have the latest model in order for autoscaling machinepools to take place succesfully. Stores a hash of the current custom data contents into AzureMachinePool.Status.CustomDataHash. This allows to update the VMSS data if the custom data changes.
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 #2803
Special notes for your reviewer:
This is utilizing the same logic as created in this pull request https://github.com/kubernetes-sigs/cluster-api-provider-azure/pull/2803, the only changes are as follows:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
TODOs:
Release note: