calico: avoid POD restart during initial deploy (#6886)

calico PODs are first started and then in a handler killed and
restarted for no reason, nothing has changed.

By using the existing variable 'calico_cni_config' (only defined when
calico has already started) the restart can be skipped.
This commit is contained in:
Hans Feldt 2020-11-13 09:02:23 +01:00 committed by GitHub
parent a27eebb225
commit 70bbb3e280
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
---
- name: reset_calico_cni
command: /bin/true
when: calico_cni_config is defined
notify:
- delete 10-calico.conflist
- docker | delete calico-node containers