Skip to content

Commit

Permalink
Assert that current version is upgradeable #1474 (#1476)
Browse files Browse the repository at this point in the history
* Assert that upgrade from current version is supported #1474

* Update core/src/epicli/data/common/ansible/playbooks/roles/upgrade/tasks/kubernetes.yml

Co-authored-by: to-bar <[email protected]>
  • Loading branch information
rafzei and to-bar authored Jul 22, 2020
1 parent d359bb4 commit 9fd78b6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
import_tasks: kubernetes/get-cluster-version.yml # sets cluster_version
delegate_to: "{{ groups['kubernetes_master'][0] }}"

- name: Check if upgrade from current K8s version is supported
assert:
that: cluster_version is version('v1.14.6', '>=')
fail_msg: Your Kubernetes version ({{ cluster_version }}) is not supported by this version of Epiphany which requires at least version 1.14.6 (Epiphany v0.4.4). For more information, refer to the documentation.
quiet: true

- name: Include get-kubelet-version.yml
import_tasks: kubernetes/get-kubelet-version.yml # sets kubelet_version
delegate_to: "{{ groups['kubernetes_master'][0] }}"
Expand Down

0 comments on commit 9fd78b6

Please sign in to comment.