Optionally ignore the presence of extra calico pools (#2190)

This commit is contained in:
Matthew Mosesohn
2018-01-25 18:44:20 +03:00
committed by GitHub
parent c6e0fcea31
commit d2935ffed0
2 changed files with 4 additions and 1 deletions

View File

@@ -142,7 +142,7 @@
fail:
msg: 'Only one network pool must be configured and it must be the subnet {{ kube_pods_subnet }}.
Please erase calico configuration and run the playbook again ("etcdctl rm --recursive /calico/v1/ipam/v4/pool")'
when: ( calico_pools['node']['nodes'] | length > 1 ) or
when: ( calico_pools['node']['nodes'] | length > 1 and not calico_ignore_extra_pools ) or
( not calico_pools['node']['nodes'][0]['key'] | search(".*{{ kube_pods_subnet | ipaddr('network') }}.*") )
run_once: true