-
Notifications
You must be signed in to change notification settings - Fork 427
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
Multitenancy for managed clusters #1386
Multitenancy for managed clusters #1386
Conversation
/retest |
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 it possible to have an e2e test for this?
942f00e
to
d79fc5d
Compare
Yes, I'll work on adding it. |
I think this is 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
The issue with the repeated identity controller should either be refactored here or in #1389.
Two solutions I can think of:
Both of these are not ideal solutions. The main problem I see is, although the identity feature is not experimental, in this case it's tightly coupled with the exp api types which makes it difficult to move it out of exp. wdyt? |
The identity controller in the |
Why is importing exp types in the main controller a bad thing? As long as it's all behind feature gates that should be fine and, IMO, cleaner than duplicating code that might diverge in the future. We already do this in CAPI, eg: |
I didn't think this was allowed, in that case, my bad for asking Shyam to not do that and have a 2nd controller, we can just combine them then |
Thanks @CecileRobertMichon and @nader-ziada for the feedback. I'll update the existing identity_controller to handle aks identities, and remove the new one. |
this looks fairly good to go? anything you're still working on? |
Nope, I think we can this one in and create a follow up issue for more e2e scenarios. |
/lgtm nice work! |
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
👏👏 /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nader-ziada 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 |
@shysank you are going to have to rebase so we can get this in |
009897f
to
5a6a864
Compare
/test pull-cluster-api-provider-azure-e2e |
@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. |
/test pull-cluster-api-provider-azure-e2e |
/lgtm |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR implements multitenancy for azure managed clusters largely building upon the work done in #977
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 #1153
Special notes for your reviewer:
A couple of things to note:
NetworkInfrastructureReadyCondition
not implemented. There are no conditions right now for managed clusters. So, will create a followup issue for thisAzureIdentityReconciler
for reconcilingAzureIdentity
andAzureIdentityBinding
in exp/controllers. which does exactly the same thing as the one already there in controllers with one difference being it only deletes identities created by managed clusters. This should eventually merged into a single controller once managed clusters are promoted from experimental.Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
TODOs:
Release note: