During pre-upgrade add a flag to always cordon (#7892)
* During pre-upgrade add a flag to always cordon * empty * empty * empty * Better default valpull/7924/head
parent
c8e090c17f
commit
9d3888a756
|
@ -6,6 +6,7 @@ drain_nodes: true
|
|||
drain_retries: 3
|
||||
drain_retry_delay_seconds: 10
|
||||
|
||||
upgrade_node_always_cordon: false
|
||||
upgrade_node_uncordon_after_drain_failure: true
|
||||
upgrade_node_fail_if_drain_fails: true
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue