Skip to content

Commit

Permalink
remove-node roles: fix kubectl absolute path (kubernetes-sigs#7469)
Browse files Browse the repository at this point in the history
* kubelet absolute path

* kubelet absolute path

(cherry picked from commit e2a7f3e)
  • Loading branch information
liupeng0518 authored and champtar committed Apr 9, 2021
1 parent 29e043d commit c8925b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/remove-node/pre-remove/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
- name: remove-node | List nodes
command: kubectl get nodes -o go-template={% raw %}'{{ range .items }}{{ .metadata.name }}{{ "\n" }}{{ end }}'{% endraw %}
command: >-
{{ bin_dir }}/kubectl get nodes -o go-template={% raw %}'{{ range .items }}{{ .metadata.name }}{{ "\n" }}{{ end }}'{% endraw %}
register: nodes
delegate_to: "{{ groups['kube-master']|first }}"
changed_when: false
Expand Down

0 comments on commit c8925b2

Please sign in to comment.