Add timeout to Get current version of calico cluster version (#4149)
Avoid waiting forever for this task that should be very quick. Fixes: #4148
This commit is contained in:
parent
58c71d8ea6
commit
316b73178d
2 changed files with 4 additions and 0 deletions
|
@ -138,6 +138,8 @@
|
||||||
- name: "Get current version of calico cluster version"
|
- name: "Get current version of calico cluster version"
|
||||||
shell: "{{ bin_dir }}/calicoctl version | grep 'Cluster Version:' | awk '{ print $3}'"
|
shell: "{{ bin_dir }}/calicoctl version | grep 'Cluster Version:' | awk '{ print $3}'"
|
||||||
register: calico_version_on_server
|
register: calico_version_on_server
|
||||||
|
async: 10
|
||||||
|
poll: 3
|
||||||
run_once: yes
|
run_once: yes
|
||||||
delegate_to: "{{ groups['kube-master'][0] }}"
|
delegate_to: "{{ groups['kube-master'][0] }}"
|
||||||
when:
|
when:
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
register: calico_version_on_server
|
register: calico_version_on_server
|
||||||
run_once: yes
|
run_once: yes
|
||||||
delegate_to: "{{ groups['kube-master'][0] }}"
|
delegate_to: "{{ groups['kube-master'][0] }}"
|
||||||
|
async: 10
|
||||||
|
poll: 3
|
||||||
|
|
||||||
- name: "Determine if calico upgrade is needed"
|
- name: "Determine if calico upgrade is needed"
|
||||||
block:
|
block:
|
||||||
|
|
Loading…
Reference in a new issue