-
Notifications
You must be signed in to change notification settings - Fork 430
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
✨ Add support for managed identity in machine pool #1004
Conversation
Welcome @shysank! |
Hi @shysank. 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 @devigned |
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.
Thanks for the PR @shysank
a couple of quick questions
|
||
// ErrUserAssignedIdentitiesNotFound is the error thrown when user assigned identities is not passed with the identity type being UserAssigned | ||
var ErrUserAssignedIdentitiesNotFound = errors.New("the user-assigned identity provider ids must not be null or empty for 'UserAssigned' identity type") | ||
|
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.
is this converter to just generate the resource id in the azure format?
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.
Yes, this is just a helper for converting []UserIdentity
to map[string]VmOrVmssIdentityStruct
/ok-to-test |
@devigned can you take a look please |
@shysank if you think the PR is ready, can you please remove the [WIP] and add a release note in the PR description. |
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.
Looks pretty good. I have some light feedback about the code and documentation.
One thing I would like to see out of this PR is a tutorial in the CAPZ book to describe how to create a MachinePool with a user assigned identity with a link to building a user assigned identity.
templates/flavors/machinepool-user-assigned-identity/patches/user-assigned-identity.yaml
Outdated
Show resolved
Hide resolved
templates/flavors/machinepool-user-assigned-identity/kustomization.yaml
Outdated
Show resolved
Hide resolved
templates/flavors/machinepool-system-assigned-identity/patches/system-assigned-identity.yaml
Outdated
Show resolved
Hide resolved
templates/flavors/machinepool-system-assigned-identity/kustomization.yaml
Outdated
Show resolved
Hide resolved
config/crd/bases/exp.infrastructure.cluster.x-k8s.io_azuremachinepools.yaml
Show resolved
Hide resolved
@@ -717,6 +717,188 @@ func TestReconcileVMSS(t *testing.T) { | |||
s.SetProvisioningState(infrav1.VMStateSucceeded) | |||
}, | |||
}, | |||
{ | |||
name: "can create a vmss with user assigned identity", |
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.
No action in the PR, but more for maintainers.
Dang... these tests are verbose with only like 2 lines that need to be updated. It would be nice to dry these up.
cc: @CecileRobertMichon and @nader-ziada
re: documentation, you could add onto the existing Identity doc https://capz.sigs.k8s.io/topics/identity.html |
/retitle ✨ Add support for managed identity in machine pool |
@shysank: Re-titling can only be requested by trusted users, like repository collaborators. 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. |
@devigned I've addressed the review comments, PTAL. |
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
/assign @nader-ziada @CecileRobertMichon
lgtm pending squashing commits |
/retest looks like an unrelated flake |
87d91b7
to
af862a5
Compare
@CecileRobertMichon I have made the role assignment changes for system assigned identity, PTAL. The api-diff script is failing because I modified the |
I think its lgtm pending squashing commits |
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, please squash the commits @shysank
Awesome work, thanks!
@shysank: 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/test-infra repository. I understand the commands that are listed here. |
@nader-ziada @CecileRobertMichon Thanks for the review, I've squashed the commits. |
/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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: devigned 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 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds support for managed identity in machine pool.
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 #960
TODOs:
Release Note: