mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 11:47:47 +03:00
Calico: make calico_min_version check relevant (#7939)
* Calico: make calico_min_version check relevant * Calico: only check currently installed version against the oldest supported version by the previous release
This commit is contained in:
@@ -199,14 +199,6 @@
|
||||
- cloud-provider
|
||||
- facts
|
||||
|
||||
- name: Ensure minimum calico version
|
||||
assert:
|
||||
that: calico_version is version(calico_min_version_required, '>=')
|
||||
msg: "calico_version is too low. Minimum version {{ calico_min_version_required }}"
|
||||
run_once: yes
|
||||
when:
|
||||
- kube_network_plugin == 'calico'
|
||||
|
||||
- name: Get current calico cluster version
|
||||
shell: "set -o pipefail && {{ bin_dir }}/calicoctl.sh version | grep 'Cluster Version:' | awk '{ print $3}'"
|
||||
args:
|
||||
@@ -223,8 +215,10 @@
|
||||
- name: Check that current calico version is enough for upgrade
|
||||
assert:
|
||||
that:
|
||||
- calico_version_on_server.stdout is version( 'v3.0.0', '>=')
|
||||
msg: "Your version of calico is not fresh enough for upgrade. Minimum version is v3.0.0"
|
||||
- calico_version_on_server.stdout is version(calico_min_version_required, '>=')
|
||||
msg: >
|
||||
Your version of calico is not fresh enough for upgrade.
|
||||
Minimum version is {{ calico_min_version_required }} supported by the previous kubespray release.
|
||||
when:
|
||||
- kube_network_plugin == 'calico'
|
||||
- 'calico_version_on_server.stdout is defined'
|
||||
|
||||
Reference in New Issue
Block a user