File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
infrastructure/server-setup/tasks/all Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 2424 ansible.builtin.set_fact :
2525 current_major : " {{ current_k8s_version.split('.')[0] }}"
2626 current_minor : " {{ current_k8s_version.split('.')[1] }}"
27- current_patch : " {{ current_k8s_version.split('.')[2] | default('0') }}"
2827 target_major : " {{ k8s_target_version.split('.')[0] }}"
2928 target_minor : " {{ k8s_target_version.split('.')[1] }}"
30- target_patch : " {{ k8s_target_version.split('.')[2] | default('0') }}"
3129
3230# Do we need to fail?
3331- name : Check if versions are identical
4442 Please downgrade manually using kubeadm!
4543 when :
4644 - (target_major | int < current_major | int) or
47- (target_major | int == current_major | int and target_minor | int < current_minor | int) or
48- (target_major | int == current_major | int and target_minor | int == current_minor | int and target_patch | int < current_patch | int)
45+ (target_major | int == current_major | int and target_minor | int < current_minor | int)
4946
5047- name : Validate minor version upgrade (no version skipping)
5148 ansible.builtin.fail :
You can’t perform that action at this time.
0 commit comments