Skip to content

Commit

Permalink
Merge pull request #6754 from spadgett/remove-old-console-config
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue.

Remove obsolete properties from console config map

Stop writing deprecated config to the console config map.

/hold

This can't be merged until openshift/origin-web-console-server#20 merges.
Follow on to #6730
  • Loading branch information
openshift-merge-robot authored Jan 21, 2018
2 parents d5a464b + b74651d commit b1f728d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 58 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
2 changes: 1 addition & 1 deletion roles/openshift_logging/tasks/delete_logging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,6 @@
tasks_from: update_console_config.yml
vars:
console_config_edits:
- key: loggingPublicURL
- key: clusterInfo#loggingPublicURL
value: ""
when: openshift_web_console_install | default(true) | bool
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
2 changes: 1 addition & 1 deletion roles/openshift_metrics/tasks/uninstall_metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
tasks_from: update_console_config.yml
vars:
console_config_edits:
- key: metricsPublicURL
- key: clusterInfo#metricsPublicURL
value: ""
when: openshift_web_console_install | default(true) | bool
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 @@ -53,29 +53,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 b1f728d

Please sign in to comment.