Set embedded Etcd as stable for k3s >= 1.19.5

This commit is contained in:
Xan Manning 2020-12-12 14:38:55 +00:00
parent 3094f59c07
commit e71ed70bdf
2 changed files with 3 additions and 2 deletions

View File

@ -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:

View File

@ -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