During pre-upgrade add a flag to always cordon (#7892)

* During pre-upgrade add a flag to always cordon

* empty

* empty

* empty

* Better default val
This commit is contained in:
Calvin Park
2021-08-30 10:56:09 -07:00
committed by GitHub
parent c8e090c17f
commit 9d3888a756
2 changed files with 2 additions and 1 deletions

View File

@@ -39,7 +39,7 @@
- name: Set if node needs cordoning
set_fact:
needs_cordoning: >-
{% if kubectl_node_ready.stdout == "True" and not kubectl_node_schedulable.stdout -%}
{% if (kubectl_node_ready.stdout == "True" and not kubectl_node_schedulable.stdout) or upgrade_node_always_cordon -%}
true
{%- else -%}
false