Fix condition on kata_containers_version/kube_version when kata_containers_enabled is false (#8804)
This commit is contained in:
parent
5296d7ef9c
commit
8f618ab408
1 changed files with 4 additions and 2 deletions
|
@ -248,7 +248,7 @@
|
|||
You can set `etcd_deployment_type` to `kubeadm` instead of setting `etcd_kubeadm_enabled` to `true`."
|
||||
changed_when: true
|
||||
|
||||
- name: Stop if `etcd_kubeadm_enabled` is defined and `etcd_deployment_type` is not `kubadm` or `host`
|
||||
- name: Stop if `etcd_kubeadm_enabled` is defined and `etcd_deployment_type` is not `kubeadm` or `host`
|
||||
assert:
|
||||
that: etcd_deployment_type == 'kubeadm'
|
||||
msg: >
|
||||
|
@ -274,7 +274,9 @@
|
|||
assert:
|
||||
that: kube_version is version('v1.22.0', '>')
|
||||
msg: "Kata containers version 2.3.0 is compatible with Kubernetes 1.22.0+"
|
||||
when: kata_containers_version is version ('2.3.0', '>=')
|
||||
when:
|
||||
- kata_containers_enabled
|
||||
- kata_containers_version is version ('2.3.0', '>=')
|
||||
|
||||
- name: Stop if gvisor_enabled is enabled when container_manager is not containerd
|
||||
assert:
|
||||
|
|
Loading…
Reference in a new issue