Browse Source

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.
pull/6912/head
Hans Feldt 4 years ago
committed by GitHub
parent
commit
70bbb3e280
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. 1
      roles/network_plugin/calico/handlers/main.yml

1
roles/network_plugin/calico/handlers/main.yml

@ -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

Loading…
Cancel
Save