Skip to content

Commit

Permalink
Remove old console asset config
Browse files Browse the repository at this point in the history
Stop writing deprecated config to the console config map.
  • Loading branch information
spadgett committed Jan 19, 2018
1 parent 7411bdc commit 9d96719
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 56 deletions.
27 changes: 4 additions & 23 deletions files/origin-components/console-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ clusterInfo:
logoutPublicURL: ""
masterPublicURL: https://127.0.0.1:8443
metricsPublicURL: ""
# TODO: The new extensions properties cannot be set until
# origin-web-console-server has been updated with the API changes since
# `extensions` in the old asset config was an array.
#extensions:
# scriptURLs: []
# stylesheetURLs: []
# properties: null
extensions:
scriptURLs: []
stylesheetURLs: []
properties: null
features:
inactivityTimeoutMinutes: 0
servingInfo:
Expand All @@ -24,19 +21,3 @@ servingInfo:
maxRequestsInFlight: 0
namedCertificates: null
requestTimeoutSeconds: 0

# START deprecated properties
# These properties have been renamed and will be removed from the install
# in a future pull. Keep both the old and new properties for now so that
# the install is not broken while the origin-web-console image is updated.
extensionDevelopment: false
extensionProperties: null
extensionScripts: null
extensionStylesheets: null
extensions: null
loggingPublicURL: ""
logoutURL: ""
masterPublicURL: https://127.0.0.1:8443
metricsPublicURL: ""
publicURL: https://127.0.0.1:8443/console/
# END deprecated properties
5 changes: 0 additions & 5 deletions roles/openshift_logging/tasks/install_logging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,4 @@
console_config_edits:
- key: clusterInfo#loggingPublicURL
value: "https://{{ openshift_logging_kibana_hostname }}"
# Continue to set the old deprecated property until the
# origin-web-console image is updated for the new name.
# This will be removed in a future pull.
- key: loggingPublicURL
value: "https://{{ openshift_logging_kibana_hostname }}"
when: openshift_web_console_install | default(true) | bool
5 changes: 0 additions & 5 deletions roles/openshift_metrics/tasks/install_metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@
console_config_edits:
- key: clusterInfo#metricsPublicURL
value: "https://{{ openshift_metrics_hawkular_hostname}}/hawkular/metrics"
# Continue to set the old deprecated property until the
# origin-web-console image is updated for the new name.
# This will be removed in a future pull.
- key: metricsPublicURL
value: "https://{{ openshift_metrics_hawkular_hostname}}/hawkular/metrics"
when: openshift_web_console_install | default(true) | bool

- command: >
Expand Down
29 changes: 6 additions & 23 deletions roles/openshift_web_console/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,12 @@
value: "{{ openshift.master.logout_url | default('') }}"
- key: features#inactivityTimeoutMinutes
value: "{{ openshift_web_console_inactivity_timeout_minutes | default(0) }}"

# TODO: The new extensions properties cannot be set until
# origin-web-console-server has been updated with the API changes since
# `extensions` in the old asset config was an array.

# - key: extensions#scriptURLs
# value: "{{ openshift_web_console_extension_script_urls | default([]) }}"
# - key: extensions#stylesheetURLs
# value: "{{ openshift_web_console_extension_stylesheet_urls | default([]) }}"
# - key: extensions#properties
# value: "{{ openshift_web_console_extension_properties | default({}) }}"

# DEPRECATED PROPERTIES
# These properties have been renamed and will be removed from the install
# in a future pull. Keep both the old and new properties for now so that
# the install is not broken while the origin-web-console image is updated.
- key: publicURL
# Must have a trailing slash
value: "{{ openshift.master.public_console_url }}/"
- key: logoutURL
value: "{{ openshift.master.logout_url | default('') }}"
- key: masterPublicURL
value: "{{ openshift.master.public_api_url }}"
- key: extensions#scriptURLs
value: "{{ openshift_web_console_extension_script_urls | default([]) }}"
- key: extensions#stylesheetURLs
value: "{{ openshift_web_console_extension_stylesheet_urls | default([]) }}"
- key: extensions#properties
value: "{{ openshift_web_console_extension_properties | default({}) }}"
separator: '#'
state: present

Expand Down

0 comments on commit 9d96719

Please sign in to comment.