Browse Source

Merge pull request #4743 from ewolinetz/bz1469986

Created js file for enabling tech preview for console, updated master…
Scott Dodson 7 years ago
parent
commit
9c2d56757c

+ 2 - 0
roles/openshift_service_catalog/files/openshift-ansible-catalog-console.js

@@ -0,0 +1,2 @@
+window.OPENSHIFT_CONSTANTS.ENABLE_TECH_PREVIEW_FEATURE.service_catalog_landing_page = true;
+window.OPENSHIFT_CONSTANTS.ENABLE_TECH_PREVIEW_FEATURE.pod_presets = true;

+ 9 - 0
roles/openshift_service_catalog/tasks/wire_aggregator.yml

@@ -119,6 +119,11 @@
   when:
   - not front_proxy_kubeconfig.stat.exists
 
+- name: copy tech preview extension file for service console UI
+  copy:
+    src: openshift-ansible-catalog-console.js
+    dest: /etc/origin/master/openshift-ansible-catalog-console.js
+
 - name: Update master config
   yedit:
     state: present
@@ -138,6 +143,10 @@
       value: [X-Remote-Group]
     - key: authConfig.requestHeader.extraHeaderPrefixes
       value: [X-Remote-Extra-]
+    - key: assetConfig.extensionScripts
+      value: [/etc/origin/master/openshift-ansible-catalog-console.js]
+    - key: kubernetesMasterConfig.apiServerArguments.runtime-config
+      value: [apis/settings.k8s.io/v1alpha1=true]
   register: yedit_output
 
 #restart master serially here