Skip to content

Commit 7bd4650

Browse files
committed
testing
1 parent 30bebfc commit 7bd4650

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

infrastructure/server-setup/tasks/all/checks-k8s.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@
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
@@ -44,8 +42,7 @@
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:

0 commit comments

Comments
 (0)