summaryrefslogtreecommitdiffstats
path: root/playbooks/common
diff options
context:
space:
mode:
authorJason DeTiberus <jdetiber@redhat.com>2016-12-07 11:31:42 -0500
committerJason DeTiberus <jdetiber@redhat.com>2016-12-07 11:31:42 -0500
commitd774c3488bc7e1a0b92a1f0d44b655c64063c9b5 (patch)
tree7e929da18431a427c608b2a0bba986a3a40e5168 /playbooks/common
parent888c342174d2d6b7a51e97848c35b1e406106a66 (diff)
downloadopenshift-d774c3488bc7e1a0b92a1f0d44b655c64063c9b5.tar.gz
openshift-d774c3488bc7e1a0b92a1f0d44b655c64063c9b5.tar.bz2
openshift-d774c3488bc7e1a0b92a1f0d44b655c64063c9b5.tar.xz
openshift-d774c3488bc7e1a0b92a1f0d44b655c64063c9b5.zip
add comments and remove debug code
Diffstat (limited to 'playbooks/common')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/upgrade_scheduler.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/upgrade_scheduler.yml b/playbooks/common/openshift-cluster/upgrades/upgrade_scheduler.yml
index f63c32e0c..88f2ddc78 100644
--- a/playbooks/common/openshift-cluster/upgrades/upgrade_scheduler.yml
+++ b/playbooks/common/openshift-cluster/upgrades/upgrade_scheduler.yml
@@ -4,6 +4,8 @@
prev_predicates: "{{ lookup('openshift_master_facts_default_predicates', short_version=openshift_upgrade_min, deployment_type=openshift_deployment_type) }}"
prev_predicates_no_region: "{{ lookup('openshift_master_facts_default_predicates', short_version=openshift_upgrade_min, deployment_type=openshift_deployment_type, regions_enabled=False) }}"
default_predicates_no_region: "{{ lookup('openshift_master_facts_default_predicates', regions_enabled=False) }}"
+ # older_predicates are the set of predicates that have previously been
+ # hard-coded into openshift_facts
older_predicates:
- - name: MatchNodeSelector
- name: PodFitsResources
@@ -36,6 +38,8 @@
serviceAffinity:
labels:
- region
+ # older_predicates_no_region are the set of predicates that have previously
+ # been hard-coded into openshift_facts, with the Region predicate removed
older_predicates_no_region:
- - name: MatchNodeSelector
- name: PodFitsResources
@@ -91,6 +95,8 @@
prev_priorities: "{{ lookup('openshift_master_facts_default_priorities', short_version=openshift_upgrade_min, deployment_type=openshift_deployment_type) }}"
prev_priorities_no_zone: "{{ lookup('openshift_master_facts_default_priorities', short_version=openshift_upgrade_min, deployment_type=openshift_deployment_type, zones_enabled=False) }}"
default_priorities_no_zone: "{{ lookup('openshift_master_facts_default_priorities', zones_enabled=False) }}"
+ # older_priorities are the set of priorities that have previously been
+ # hard-coded into openshift_facts
older_priorities:
- - name: LeastRequestedPriority
weight: 1
@@ -101,6 +107,8 @@
argument:
serviceAntiAffinity:
label: zone
+ # older_priorities_no_region are the set of priorities that have previously
+ # been hard-coded into openshift_facts, with the Zone priority removed
older_priorities_no_zone:
- - name: LeastRequestedPriority
weight: 1
@@ -149,8 +157,6 @@
priorities: "{{ openshift_upgrade_scheduler_priorities
| default(openshift_master_scheduler_current_priorities) }}"
block:
- # TODO: perform upgrade
- - debug: var=scheduler_config
- name: Update scheduler config
copy:
content: "{{ scheduler_config | to_nice_json }}"