Browse Source

Fixes #2800

pull/2801/head
dvazar 7 years ago
parent
commit
4b8daa22f6
1 changed files with 3 additions and 3 deletions
  1. 6
      roles/kubernetes/preinstall/tasks/verify-settings.yml

6
roles/kubernetes/preinstall/tasks/verify-settings.yml

@ -17,13 +17,13 @@
- name: Stop if unknown network plugin
assert:
that: network_plugin in ['calico', 'canal', 'flannel', 'weave', 'cloud']
when: network_plugin is defined
that: kube_network_plugin in ['calico', 'canal', 'flannel', 'weave', 'cloud']
when: kube_network_plugin is defined
ignore_errors: "{{ ignore_assert_errors }}"
- name: Stop if incompatible network plugin and cloudprovider
assert:
that: network_plugin != 'calico'
that: kube_network_plugin != 'calico'
msg: "Azure and Calico are not compatible. See https://github.com/projectcalico/calicoctl/issues/949 for details."
when: cloud_provider is defined and cloud_provider == 'azure'
ignore_errors: "{{ ignore_assert_errors }}"

Loading…
Cancel
Save