mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-10 22:19:32 -02:30
verify settings: fix etcd assertion when implicity etcd group
When the etcd group is not specified we assume it's kube_control_plane. In that case, etcd still can't be even, so instead of only checking the etcd group we need to default to kube_control_plane
This commit is contained in:
@@ -74,10 +74,10 @@
|
|||||||
|
|
||||||
- name: Stop if even number of etcd hosts
|
- name: Stop if even number of etcd hosts
|
||||||
assert:
|
assert:
|
||||||
that: groups.etcd | length is not divisibleby 2
|
that: groups.get('etcd', groups.kube_control_plane) | length is not divisibleby 2
|
||||||
|
run_once: true
|
||||||
when:
|
when:
|
||||||
- not ignore_assert_errors
|
- not ignore_assert_errors
|
||||||
- inventory_hostname in groups.get('etcd',[])
|
|
||||||
|
|
||||||
- name: Stop if memory is too small for control plane nodes
|
- name: Stop if memory is too small for control plane nodes
|
||||||
assert:
|
assert:
|
||||||
|
|||||||
Reference in New Issue
Block a user