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:
Sorin Sbarnea 2019-02-02 04:09:04 +00:00 committed by Kubernetes Prow Robot
parent 58c71d8ea6
commit 316b73178d
2 changed files with 4 additions and 0 deletions

View file

@ -138,6 +138,8 @@
- name: "Get current version of calico cluster version"
shell: "{{ bin_dir }}/calicoctl version | grep 'Cluster Version:' | awk '{ print $3}'"
register: calico_version_on_server
async: 10
poll: 3
run_once: yes
delegate_to: "{{ groups['kube-master'][0] }}"
when:

View file

@ -14,6 +14,8 @@
register: calico_version_on_server
run_once: yes
delegate_to: "{{ groups['kube-master'][0] }}"
async: 10
poll: 3
- name: "Determine if calico upgrade is needed"
block: