Retry cleaning up calico-node container (#5302)

Change-Id: Iad27b107860213759c7ae51f0891d7e5e7c6d96b
pull/5307/head
Matthew Mosesohn 2019-10-28 15:11:25 +03:00 committed by Kubernetes Prow Robot
parent 81da231b1e
commit 94d4ce5a6f
1 changed files with 6 additions and 0 deletions

View File

@ -13,10 +13,16 @@
- name: docker | delete calico-node containers - name: docker | delete calico-node containers
shell: "docker ps -af name=k8s_POD_calico-node* -q | xargs --no-run-if-empty docker rm -f" shell: "docker ps -af name=k8s_POD_calico-node* -q | xargs --no-run-if-empty docker rm -f"
register: docker_calico_node_remove
until: docker_calico_node_remove is succeeded
retries: 5
when: container_manager in ["docker"] when: container_manager in ["docker"]
- name: containerd | delete calico-node containers - name: containerd | delete calico-node containers
shell: 'crictl pods --name calico-node-* -q | xargs -I% --no-run-if-empty bash -c "crictl stopp % && crictl rmp %"' shell: 'crictl pods --name calico-node-* -q | xargs -I% --no-run-if-empty bash -c "crictl stopp % && crictl rmp %"'
register: crictl_calico_node_remove
until: crictl_calico_node_remove is succeeded
retries: 5
when: container_manager in ["crio", "containerd"] when: container_manager in ["crio", "containerd"]
- name: Calico | Reload NetworkManager - name: Calico | Reload NetworkManager