mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-11-09 15:03:31 +01:00
Set embedded Etcd as stable for k3s >= 1.19.5
This commit is contained in:
parent
3094f59c07
commit
e71ed70bdf
2 changed files with 3 additions and 2 deletions
|
@ -8,9 +8,9 @@
|
|||
fail_msg: "Experimental variables have been configured. If you want to use them ensure you set k3s_use_experimental"
|
||||
when: (k3s_non_root is defined and k3s_non_root)
|
||||
or (k3s_dqlite_datastore is defined and k3s_dqlite_datastore)
|
||||
or (k3s_etcd_datastore is defined and k3s_etcd_datastore)
|
||||
or (k3s_etcd_datastore is defined and k3s_etcd_datastore and (k3s_release_version | replace('v', '')) is version('1.19.5', '<'))
|
||||
or (k3s_secrets_encryption is defined and k3s_secrets_encryption)
|
||||
or (k3s_enable_selinux is defined and k3s_enable_selinux)
|
||||
or (k3s_enable_selinux is defined and k3s_enable_selinux and (k3s_release_version | replace('v', '')) is version('1.19.4', '<'))
|
||||
|
||||
- name: Check if experimental dqlite is being used and k3s_use_unsupported_config is configured
|
||||
assert:
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
assert:
|
||||
that:
|
||||
- (k3s_release_version | replace('v', '')) is version_compare('0.2.0', '>=')
|
||||
- (k3s_release_version | replace('v', '')) is version_compare('1.20.0', '<')
|
||||
success_msg: "--docker is supported in {{ k3s_release_version }}"
|
||||
fail_msg: "--docker is not supported in {{ k3s_release_version }}"
|
||||
when: k3s_use_docker is defined and k3s_use_docker
|
||||
|
|
Loading…
Reference in a new issue