Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Add VnetIntegration switch to Kubernetes#1480

Closed
ofiliz wants to merge 2 commits intoAzure:masterfrom
ofiliz:vnet-integration-setting
Closed

Add VnetIntegration switch to Kubernetes#1480
ofiliz wants to merge 2 commits intoAzure:masterfrom
ofiliz:vnet-integration-setting

Conversation

@ofiliz
Copy link
Contributor

@ofiliz ofiliz commented Sep 23, 2017

What this PR does / why we need it:
To solve the problems described in issue #1499, this PR adds a "vnetIntegration" property to KubernetesConfig. It defaults to disabled.

The existing "networkPolicy" property controls what the network policy provider is. The new "vnetIntegration" property controls whether VNET CNI plugins are enabled. This allows Calico to implement their network policy on top of our IPAM CNI plugin by setting vnetIntegration:"enabled" and networkPolicy:"calico". It also enables customers to immediately start using our VNET CNI plugin (with pods having access to Internet) by just setting vnetIntegration:"enabled".

The azure networkPolicy requires vnetIntegration to be enabled. This is forced in acs-engine. New test cases are added to validate behavior of all possible combinations.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #1499

Special notes for your reviewer:
I reordered some fields in KubernetesConfig to group similar fields together and make sure they are always read/parsed/passed in the same order for consistency. This isn't a must, but results in better code IMHO.

Release note:

@nisheeth-ms, @sharmasushant, @tamilmani1989, @lachie83, @anhowe
fixes #1499

@lachie83
Copy link
Member

Thanks @ofiliz I'll take a look

@ofiliz
Copy link
Contributor Author

ofiliz commented Sep 23, 2017

Wow, I need to sign a CLA now! 😄 It took Microsoft just two days to forget who I am. 😆

@ofiliz
Copy link
Contributor Author

ofiliz commented Sep 26, 2017

@lachie83 Can we please get this done soon? The Windows CNI PR depends on this one.

@jackfrancis jackfrancis closed this Dec 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add switch in KubernetesConfig to enable VNET integration

5 participants