-
Notifications
You must be signed in to change notification settings - Fork 455
Check for VM assigned identities without API calls #5780
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
Conversation
We should make this available to scalability tests when we pin that to a release branch of CAPZ: /cherry-pick release-1.20 |
@nojnhuh: once the present PR merges, I will cherry-pick it on top of 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-sigs/prow repository. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5780 +/- ##
==========================================
- Coverage 52.82% 52.81% -0.02%
==========================================
Files 279 279
Lines 29629 29602 -27
==========================================
- Hits 15652 15634 -18
+ Misses 13160 13154 -6
+ Partials 817 814 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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
/approve
Good find! Not sure why I thought it was necessary to build a map of expected identities when we already had them lol
LGTM label has been added. Git tree hash: 80d84ed26f6e4e7e1345e43e8b36488b4717cede
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: willie-yao 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 |
@nojnhuh: new pull request created: #5782 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-sigs/prow repository. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR removes the need to perform an extra API call for every reconciliation of every VM to determine whether the user assigned identities defined in an AzureMachine exist on the VM in Azure.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Ref #2319
Special notes for your reviewer:
I did manually test that this still works as expected:
default
flavor)kubectl label
)VMIdentitiesReady
condition appear on the AzureMachine withUserAssignedIdentityMissing
TODOs:
Release note: