diff options
author | Samuel Padgett <spadgett@redhat.com> | 2018-01-27 12:38:46 -0500 |
---|---|---|
committer | Samuel Padgett <spadgett@redhat.com> | 2018-01-27 12:38:46 -0500 |
commit | c7cf55596e22323ba5ae6abdd1d4c2cdfa06b31d (patch) | |
tree | 2966eda1fba894f6e55b853f5f40b5101c20feea | |
parent | c099618499368c59a15024f5dc733d05ebc82c53 (diff) | |
download | openshift-c7cf55596e22323ba5ae6abdd1d4c2cdfa06b31d.tar.gz openshift-c7cf55596e22323ba5ae6abdd1d4c2cdfa06b31d.tar.bz2 openshift-c7cf55596e22323ba5ae6abdd1d4c2cdfa06b31d.tar.xz openshift-c7cf55596e22323ba5ae6abdd1d4c2cdfa06b31d.zip |
Bug 1539182: Detect if ClusterResourceOverrides enabled during console install
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1539182
-rw-r--r-- | roles/openshift_web_console/tasks/install.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/roles/openshift_web_console/tasks/install.yml b/roles/openshift_web_console/tasks/install.yml index ff33338a6..f79a05c94 100644 --- a/roles/openshift_web_console/tasks/install.yml +++ b/roles/openshift_web_console/tasks/install.yml @@ -71,6 +71,9 @@ - set_fact: config_to_migrate: "{{ master_config_output.content | b64decode | from_yaml }}" + - set_fact: + cro_plugin_enabled: "{{ config_to_migrate.admissionConfig is defined and config_to_migrate.admissionConfig.pluginConfig is defined and config_to_migrate.admissionConfig.pluginConfig.ClusterResourceOverrides is defined }}" + # Update properties in the config template based on inventory vars when the # asset config does not exist. - name: Set web console config properties from inventory variables @@ -87,7 +90,7 @@ - key: features#inactivityTimeoutMinutes value: "{{ openshift_web_console_inactivity_timeout_minutes | default(0) }}" - key: features#clusterResourceOverridesEnabled - value: "{{ openshift_web_console_cluster_resource_overrides_enabled | default(false) }}" + value: "{{ openshift_web_console_cluster_resource_overrides_enabled | default(cro_plugin_enabled) }}" - key: extensions#scriptURLs value: "{{ openshift_web_console_extension_script_urls | default([]) }}" - key: extensions#stylesheetURLs @@ -116,6 +119,8 @@ value: "{{ config_to_migrate.assetConfig.servingInfo.maxRequestsInFlight | default(0) }}" - key: servingInfo#requestTimeoutSeconds value: "{{ config_to_migrate.assetConfig.servingInfo.requestTimeoutSeconds | default(0) }}" + - key: features#clusterResourceOverridesEnabled + value: "{{ openshift_web_console_cluster_resource_overrides_enabled | default(cro_plugin_enabled) }}" separator: '#' state: present when: config_to_migrate.assetConfig is defined |