mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Add a container_manager validation (#8785)
This commit is contained in:
@@ -217,6 +217,12 @@
|
|||||||
when:
|
when:
|
||||||
- inventory_hostname in groups.get('etcd',[])
|
- inventory_hostname in groups.get('etcd',[])
|
||||||
|
|
||||||
|
- name: Stop if container manager is not docker, crio or containerd
|
||||||
|
assert:
|
||||||
|
that: container_manager in ['docker', 'crio', 'containerd']
|
||||||
|
msg: "The container manager, 'container_manager', must be docker, crio or containerd"
|
||||||
|
run_once: true
|
||||||
|
|
||||||
- name: Stop if etcd deployment type is not host or kubeadm when container_manager != docker
|
- name: Stop if etcd deployment type is not host or kubeadm when container_manager != docker
|
||||||
assert:
|
assert:
|
||||||
that: etcd_deployment_type in ['host', 'kubeadm']
|
that: etcd_deployment_type in ['host', 'kubeadm']
|
||||||
|
|||||||
Reference in New Issue
Block a user