mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 05:45:06 +03:00
verify_settings: fix bad task name + remove redundant conditions
This commit is contained in:
@@ -45,16 +45,14 @@
|
|||||||
that: kube_network_plugin in ['calico', 'flannel', 'weave', 'cloud', 'cilium', 'cni', 'kube-ovn', 'kube-router', 'macvlan', 'custom_cni', 'none']
|
that: kube_network_plugin in ['calico', 'flannel', 'weave', 'cloud', 'cilium', 'cni', 'kube-ovn', 'kube-router', 'macvlan', 'custom_cni', 'none']
|
||||||
msg: "{{ kube_network_plugin }} is not supported"
|
msg: "{{ kube_network_plugin }} is not supported"
|
||||||
when:
|
when:
|
||||||
- kube_network_plugin is defined
|
|
||||||
- not ignore_assert_errors
|
- not ignore_assert_errors
|
||||||
- name: Warn the user if they are still using `etcd_kubeadm_enabled`
|
|
||||||
|
- name: Warn if `kube_network_plugin` is `none
|
||||||
debug:
|
debug:
|
||||||
msg: >
|
msg: |
|
||||||
"WARNING! => `kube_network_plugin` is set to `none`. The network configuration will be skipped.
|
"WARNING! => `kube_network_plugin` is set to `none`. The network configuration will be skipped.
|
||||||
The cluster won't be ready to use, we recommend to select one of the available plugins"
|
The cluster won't be ready to use, we recommend to select one of the available plugins"
|
||||||
changed_when: true
|
|
||||||
when:
|
when:
|
||||||
- kube_network_plugin is defined
|
|
||||||
- kube_network_plugin == 'none'
|
- kube_network_plugin == 'none'
|
||||||
|
|
||||||
- name: Stop if unsupported version of Kubernetes
|
- name: Stop if unsupported version of Kubernetes
|
||||||
|
|||||||
Reference in New Issue
Block a user