Skip to content

Commit

Permalink
Reset: Check for kube-ipvs0 presence before remove it (kubernetes-sig…
Browse files Browse the repository at this point in the history
  • Loading branch information
mirwan authored and k8s-ci-robot committed Dec 5, 2018
1 parent 2c1dd69 commit 0d1be39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/reset/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,16 @@
when:
- kube_proxy_mode == 'ipvs'

- name: reset | check kube-ipvs0 network device
stat:
path: /sys/class/net/kube-ipvs0
register: kube_ipvs0

- name: reset | Remove kube-ipvs0
command: "ip link del kube-ipvs0"
when:
- kube_proxy_mode == 'ipvs'
- kube_ipvs0.stat.exists

- name: reset | delete some files and directories
file:
Expand Down

0 comments on commit 0d1be39

Please sign in to comment.