|
@@ -74,18 +74,21 @@
|
|
|
- block:
|
|
|
- debug:
|
|
|
msg: "WARNING: existing scheduler config does not match previous known defaults automated upgrade of scheduler config is disabled.\nexisting scheduler predicates: {{ openshift_master_scheduler_current_predicates }}\ncurrent scheduler default predicates are: {{ openshift_master_scheduler_default_predicates }}"
|
|
|
- when: "{{ openshift_master_scheduler_current_predicates != openshift_master_scheduler_default_predicates and
|
|
|
- openshift_master_scheduler_current_predicates not in older_predicates + [prev_predicates] }}"
|
|
|
+ when:
|
|
|
+ - openshift_master_scheduler_current_predicates != openshift_master_scheduler_default_predicates
|
|
|
+ - openshift_master_scheduler_current_predicates not in older_predicates + [prev_predicates]
|
|
|
|
|
|
- set_fact:
|
|
|
openshift_upgrade_scheduler_predicates: "{{ openshift_master_scheduler_default_predicates }}"
|
|
|
- when: "{{ openshift_master_scheduler_current_predicates != openshift_master_scheduler_default_predicates and
|
|
|
- openshift_master_scheduler_current_predicates in older_predicates + [prev_predicates] }}"
|
|
|
+ when:
|
|
|
+ - openshift_master_scheduler_current_predicates != openshift_master_scheduler_default_predicates
|
|
|
+ - openshift_master_scheduler_current_predicates in older_predicates + [prev_predicates]
|
|
|
|
|
|
- set_fact:
|
|
|
openshift_upgrade_scheduler_predicates: "{{ default_predicates_no_region }}"
|
|
|
- when: "{{ openshift_master_scheduler_current_predicates != default_predicates_no_region and
|
|
|
- openshift_master_scheduler_current_predicates in older_predicates_no_region + [prev_predicates_no_region] }}"
|
|
|
+ when:
|
|
|
+ - openshift_master_scheduler_current_predicates != default_predicates_no_region
|
|
|
+ - openshift_master_scheduler_current_predicates in older_predicates_no_region + [prev_predicates_no_region]
|
|
|
|
|
|
when: openshift_master_scheduler_predicates | default(none) is none
|
|
|
|
|
@@ -131,18 +134,21 @@
|
|
|
- block:
|
|
|
- debug:
|
|
|
msg: "WARNING: existing scheduler config does not match previous known defaults automated upgrade of scheduler config is disabled.\nexisting scheduler priorities: {{ openshift_master_scheduler_current_priorities }}\ncurrent scheduler default priorities are: {{ openshift_master_scheduler_default_priorities }}"
|
|
|
- when: "{{ openshift_master_scheduler_current_priorities != openshift_master_scheduler_default_priorities and
|
|
|
- openshift_master_scheduler_current_priorities not in older_priorities + [prev_priorities] }}"
|
|
|
+ when:
|
|
|
+ - openshift_master_scheduler_current_priorities != openshift_master_scheduler_default_priorities
|
|
|
+ - openshift_master_scheduler_current_priorities not in older_priorities + [prev_priorities]
|
|
|
|
|
|
- set_fact:
|
|
|
openshift_upgrade_scheduler_priorities: "{{ openshift_master_scheduler_default_priorities }}"
|
|
|
- when: "{{ openshift_master_scheduler_current_priorities != openshift_master_scheduler_default_priorities and
|
|
|
- openshift_master_scheduler_current_priorities in older_priorities + [prev_priorities] }}"
|
|
|
+ when:
|
|
|
+ - openshift_master_scheduler_current_priorities != openshift_master_scheduler_default_priorities
|
|
|
+ - openshift_master_scheduler_current_priorities in older_priorities + [prev_priorities]
|
|
|
|
|
|
- set_fact:
|
|
|
openshift_upgrade_scheduler_priorities: "{{ default_priorities_no_zone }}"
|
|
|
- when: "{{ openshift_master_scheduler_current_priorities != default_priorities_no_zone and
|
|
|
- openshift_master_scheduler_current_priorities in older_priorities_no_zone + [prev_priorities_no_zone] }}"
|
|
|
+ when:
|
|
|
+ - openshift_master_scheduler_current_priorities != default_priorities_no_zone
|
|
|
+ - openshift_master_scheduler_current_priorities in older_priorities_no_zone + [prev_priorities_no_zone]
|
|
|
|
|
|
when: openshift_master_scheduler_priorities | default(none) is none
|
|
|
|
|
@@ -162,5 +168,6 @@
|
|
|
content: "{{ scheduler_config | to_nice_json }}"
|
|
|
dest: "{{ openshift_master_scheduler_conf }}"
|
|
|
backup: true
|
|
|
- when: "{{ openshift_upgrade_scheduler_predicates is defined or
|
|
|
- openshift_upgrade_scheduler_priorities is defined }}"
|
|
|
+ when: >
|
|
|
+ openshift_upgrade_scheduler_predicates is defined or
|
|
|
+ openshift_upgrade_scheduler_priorities is defined
|