Skip to content
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

Support cluster using network resources (VNet, LB, IP, etc.) across AAD Tenants. #88384

Merged

Conversation

bowen5
Copy link
Contributor

@bowen5 bowen5 commented Feb 20, 2020

What type of PR is this?
/kind feature

What this PR does / why we need it:
This PR is on target to enable the scenario that Kubernetes Clusters deployed on Azure can create/use Azure Network Resources (VNet, LB, IP, RouteTable, etc.) in a different AAD Tenant than the one cluster located in.

Which issue(s) this PR fixes:

N/A

Special notes for your reviewer:
This PR need to catch Kubernetes release v1.18. Thank you.

Does this PR introduce a user-facing change?:

Azure Cloud Provider now supports using Azure network resources (Virtual Network, Load Balancer, Public IP, Route Table, Network Security Group, etc.) in different AAD Tenant and Subscription than those for the Kubernetes cluster. To use the feature, please reference https://github.com/kubernetes-sigs/cloud-provider-azure/blob/master/docs/cloud-provider-config.md#host-network-resources-in-different-aad-tenant-and-subscription.

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

Usage: https://github.com/kubernetes-sigs/cloud-provider-azure/blob/master/docs/cloud-provider-config.md#host-network-resources-in-different-aad-tenant-and-subscription

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Feb 20, 2020
@k8s-ci-robot
Copy link
Contributor

Welcome @bowen5!

It looks like this is your first PR to kubernetes/kubernetes 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/kubernetes has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Feb 20, 2020
@k8s-ci-robot
Copy link
Contributor

Hi @bowen5. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/contains-merge-commits Indicates a PR which contains merge commits. label Feb 20, 2020
@k8s-ci-robot k8s-ci-robot added area/cloudprovider sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Feb 20, 2020
@bowen5 bowen5 requested review from feiskyer and andyzhangx and removed request for justaugustus and khenidak February 20, 2020 22:28
@andyzhangx
Copy link
Member

/priority important-soon
/sig cloud-provider
/area provider/azure
/ok-to-test

@k8s-ci-robot k8s-ci-robot added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. area/provider/azure Issues or PRs related to azure provider and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Feb 21, 2020
@andyzhangx
Copy link
Member

@bowen5 looks like bazel is broken, pls run following check first before sending out PR:

hack/verify-golint.sh
hack/verify-gofmt.sh
hack/update-bazel.sh

@bowen5 bowen5 force-pushed the cross-tenant-network-resource branch from 333f188 to db52672 Compare February 21, 2020 08:53
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/contains-merge-commits Indicates a PR which contains merge commits. label Feb 21, 2020
@bowen5
Copy link
Contributor Author

bowen5 commented Feb 24, 2020

could you also add a release note at the PR body?

Done. Thank you.

@andyzhangx
Copy link
Member

/test pull-kubernetes-e2e-aks-engine-azure

@bowen5
Copy link
Contributor Author

bowen5 commented Feb 24, 2020

/retest

1 similar comment
@bowen5
Copy link
Contributor Author

bowen5 commented Feb 24, 2020

/retest

@bowen5
Copy link
Contributor Author

bowen5 commented Feb 24, 2020

/test pull-kubernetes-verify

Copy link
Member

@feiskyer feiskyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thanks for addressing comments. Could you squash the commits?

@feiskyer
Copy link
Member

/milestone v1.18

@k8s-ci-robot k8s-ci-robot added this to the v1.18 milestone Feb 24, 2020
@bowen5 bowen5 force-pushed the cross-tenant-network-resource branch from 534dc71 to b38ed04 Compare February 24, 2020 09:00
@bowen5
Copy link
Contributor Author

bowen5 commented Feb 24, 2020

looks good, thanks for addressing comments. Could you squash the commits?

Sure. Done. Thank you.

@bowen5 bowen5 requested a review from feiskyer February 24, 2020 09:01
Copy link
Member

@feiskyer feiskyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 24, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bowen5, feiskyer

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 24, 2020
@k8s-ci-robot k8s-ci-robot merged commit ca23b07 into kubernetes:master Feb 24, 2020
@saschagrunert
Copy link
Member

saschagrunert commented Feb 26, 2020

Hey @bowen5 👋, may I ask you to remove the Yes. from the release notes block? It will occur 1:1 on the release notes and we probably do not want to start the note with "Yes." :)

The explicit Action Required: None. is also not needed if no action is required :)

See:
https://github.com/kubernetes/kubernetes/blob/release-1.18/CHANGELOG/CHANGELOG-1.18.md#changelog-since-v1180-beta0

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action. labels Feb 26, 2020
@bowen5
Copy link
Contributor Author

bowen5 commented Feb 26, 2020

Hey @bowen5 👋, may I ask you to remove the Yes. from the release notes block? It will occur 1:1 on the release notes and we probably do not want to start the note with "Yes." :)

The explicit Action Required: None. is also not needed if no action is required :)

See:
https://github.com/kubernetes/kubernetes/blob/release-1.18/CHANGELOG/CHANGELOG-1.18.md#changelog-since-v1180-beta0

Hey @saschagrunert , sorry about that as I'm new to this project :). I've rephrased the release notes section to make it more user friendly. Meanwhile, would you please kindly guide me that how could I make change if I want the statement in my release notes only appear in "Changes by Kind" -> "Feature" section instead of "Urgent Upgrade Notes" section? Since I think this change is only important for those who want to use this feature but not for all K8s audience. Putting in "Urgent Upgrade Notes" section might introduce unnecessary noise to them. Thank you!

@saschagrunert
Copy link
Member

Thank you 🙏 @bowen5 I think we’re all set. Now the note will only appear in the kind/feature section if we re-generate them. If you want, then you could adjust the note manually in two PRs for the master and release-1.18 branch. :)

@bowen5
Copy link
Contributor Author

bowen5 commented Feb 26, 2020

Awesome, I'll leave the re-generation flow to do that. Thank you @saschagrunert !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/cloudprovider area/provider/azure Issues or PRs related to azure provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants