Skip to content
Snippets Groups Projects
Unverified Commit d4eecac1 authored by Emil's avatar Emil Committed by GitHub
Browse files

add option to use calico with azure when using calico in vxlan (#7300)

parent ef351e02
No related branches found
No related tags found
No related merge requests found
...@@ -38,10 +38,13 @@ ...@@ -38,10 +38,13 @@
- name: Stop if incompatible network plugin and cloudprovider - name: Stop if incompatible network plugin and cloudprovider
assert: assert:
that: kube_network_plugin != 'calico' that:
msg: "Azure and Calico are not compatible. See https://github.com/projectcalico/calicoctl/issues/949 for details." - calico_ipip_mode == 'Never'
- calico_vxlan_mode in ['Always', 'CrossSubnet']
msg: "When using cloud_provider azure and network_plugin calico calico_ipip_mode must be 'Never' and calico_vxlan_mode 'Always' or 'CrossSubnet'"
when: when:
- cloud_provider is defined and cloud_provider == 'azure' - cloud_provider is defined and cloud_provider == 'azure'
- kube_network_plugin == 'calico'
- not ignore_assert_errors - not ignore_assert_errors
- name: Stop if unsupported version of Kubernetes - name: Stop if unsupported version of Kubernetes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment