mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Fixing cordoning condition that cause fail for upgrading the cluster
This commit is contained in:
@@ -7,11 +7,11 @@
|
|||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
needs_cordoning: >-
|
needs_cordoning: >-
|
||||||
{% if " Ready" in kubectl_nodes.stdout %}
|
{% if " Ready" in kubectl_nodes.stdout -%}
|
||||||
true
|
true
|
||||||
{% else %}
|
{%- else -%}
|
||||||
false
|
false
|
||||||
{% endif %}
|
{%- endif %}
|
||||||
|
|
||||||
- name: Cordon node
|
- name: Cordon node
|
||||||
command: "{{ bin_dir }}/kubectl cordon {{ inventory_hostname }}"
|
command: "{{ bin_dir }}/kubectl cordon {{ inventory_hostname }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user