Browse Source

Fixing cordoning condition that cause fail for upgrading the cluster

pull/1370/head
Abdelsalam Abbas 7 years ago
parent
commit
1a8e92c922
1 changed files with 3 additions and 3 deletions
  1. 6
      roles/upgrade/pre-upgrade/tasks/main.yml

6
roles/upgrade/pre-upgrade/tasks/main.yml

@ -7,11 +7,11 @@
- set_fact:
needs_cordoning: >-
{% if " Ready" in kubectl_nodes.stdout %}
{% if " Ready" in kubectl_nodes.stdout -%}
true
{% else %}
{%- else -%}
false
{% endif %}
{%- endif %}
- name: Cordon node
command: "{{ bin_dir }}/kubectl cordon {{ inventory_hostname }}"

Loading…
Cancel
Save