Skip to content

Commit

Permalink
calico: avoid POD restart during initial deploy (kubernetes-sigs#6886)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hafe authored and LuckySB committed Jan 16, 2021
1 parent 70b1978 commit 3896b10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/network_plugin/calico/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 3896b10

Please sign in to comment.