Add timeout to Get current version of calico cluster version (#4149)

Avoid waiting forever for this task that should be very quick.

Fixes: #4148
pull/2301/head
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: