summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-08-22 09:17:04 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-08-22 12:40:07 -0300
commit94fd41c721cf0c1ba3ae090ea9887e7f19c80590 (patch)
treef3d687bc9954b3106ecf397d58373336f25e610e /playbooks/common/openshift-cluster
parent5f94d81d9f3aad6cdee94dea2e630f8f2d926a54 (diff)
downloadopenshift-94fd41c721cf0c1ba3ae090ea9887e7f19c80590.tar.gz
openshift-94fd41c721cf0c1ba3ae090ea9887e7f19c80590.tar.bz2
openshift-94fd41c721cf0c1ba3ae090ea9887e7f19c80590.tar.xz
openshift-94fd41c721cf0c1ba3ae090ea9887e7f19c80590.zip
Add warning at end of 3.3 upgrade if pluginOrderOverride is found.
Diffstat (limited to 'playbooks/common/openshift-cluster')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/post.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/post.yml b/playbooks/common/openshift-cluster/upgrades/post.yml
index bd97d0b34..796634a5e 100644
--- a/playbooks/common/openshift-cluster/upgrades/post.yml
+++ b/playbooks/common/openshift-cluster/upgrades/post.yml
@@ -56,3 +56,16 @@
{{ oc_cmd }} patch dc/docker-registry -n default -p
'{"spec":{"template":{"spec":{"containers":[{"name":"registry","image":"{{ registry_image }}"}]}}}}'
--api-version=v1
+
+# Check for warnings to be printed at the end of the upgrade:
+- name: Check for warnings
+ hosts: oo_masters_to_config
+ tasks:
+ # Check if any masters are using pluginOrderOverride and warn if so, only for 1.3/3.3 and beyond:
+ - command: >
+ grep pluginOrderOverride {{ openshift.common.config_base }}/master/master-config.yaml
+ register: grep_plugin_order_override
+ when: openshift.common.version_gte_3_3_or_1_3 | bool
+ - name: Warn if pluginOrderOverride is in use in master-config.yaml
+ debug: msg="WARNING pluginOrderOverride is being deprecated in master-config.yaml, please see https://docs.openshift.com/enterprise/latest/architecture/additional_concepts/admission_controllers.html for more information."
+ when: not grep_plugin_order_override | skipped and grep_plugin_order_override.rc == 0