Replcae deprecated --delete-local-data in pre-remove/pre-upgrade tasks (#8081)
parent
cee481f63d
commit
d18cc38586
|
@ -14,7 +14,7 @@
|
|||
--ignore-daemonsets
|
||||
--grace-period {{ drain_grace_period }}
|
||||
--timeout {{ drain_timeout }}
|
||||
--delete-local-data {{ hostvars[item]['kube_override_hostname']|default(item) }}
|
||||
--delete-emptydir-data {{ hostvars[item]['kube_override_hostname']|default(item) }}
|
||||
loop: "{{ node.split(',') | default(groups['kube_node']) }}"
|
||||
# ignore servers that are not nodes
|
||||
when: hostvars[item]['kube_override_hostname']|default(item) in nodes.stdout_lines
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
--ignore-daemonsets
|
||||
--grace-period {{ drain_grace_period }}
|
||||
--timeout {{ drain_timeout }}
|
||||
--delete-local-data {{ kube_override_hostname|default(inventory_hostname) }}
|
||||
--delete-emptydir-data {{ kube_override_hostname|default(inventory_hostname) }}
|
||||
{% if drain_pod_selector %}--pod-selector '{{ drain_pod_selector }}'{% endif %}
|
||||
when: drain_nodes
|
||||
register: result
|
||||
|
|
Loading…
Reference in New Issue