Fix backward compatibility with calico 2.6

This commit is contained in:
Matthew Mosesohn
2018-09-06 15:49:06 +03:00
parent a3caeba242
commit dc3e317d20
5 changed files with 50 additions and 3 deletions

View File

@@ -16,4 +16,5 @@
shell: "{{ bin_dir }}/calico-upgrade complete --no-prompts --apiconfigv1 /etc/calico/etcdv2.yml --apiconfigv3 /etc/calico/etcdv3.yml"
when:
- inventory_hostname == groups['kube-master'][0]
- calico_upgrade_enabled|default(True)
- calico_upgrade_needed|default(False)