Browse Source

Fix condition on kata_containers_version/kube_version when kata_containers_enabled is false (#8804)

pull/8809/head
emiran-orange 2 years ago
committed by GitHub
parent
commit
8f618ab408
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions
  1. 6
      roles/kubernetes/preinstall/tasks/0020-verify-settings.yml

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

@ -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…
Cancel
Save