Fix issue in remove-node/post-remove task (#5185) (#5186)

This commit is contained in:
BenoitBOULANGER 2019-10-10 14:17:43 +02:00 committed by Kubernetes Prow Robot
parent dea9304968
commit e01118d36d

View file

@ -14,6 +14,8 @@
- name: Set node IP - name: Set node IP
set_fact: set_fact:
node_ip: "{{ ip | default(access_ip | default(remove_node_ip.stdout)) | trim }}" node_ip: "{{ ip | default(access_ip | default(remove_node_ip.stdout)) | trim }}"
when:
- inventory_hostname in groups['etcd']
- name: Delete node - name: Delete node
command: "{{ bin_dir }}/kubectl delete node {{ inventory_hostname }}" command: "{{ bin_dir }}/kubectl delete node {{ inventory_hostname }}"