I'm reading through https://docs.openshift.com/container-platform/3.9/install_config/web_console_customization.html#loading-custom-scripts-and-stylesheets, which says for me to do the following, which I've done:
oc edit configmap/webconsole-config -n openshift-web-console
// I put in the below (obviously with a correct URL):
stylesheetURLs:
- https://url-for-a-css-file
// And also tried it with the below:
stylesheetURLs:[https://url-for-a-css-file]
The CSS file above looks something like this:
#header-logo {
background-image: url("https://url-for-a-png-file") !important;
width: 190px;
height: 20px;
}
Neither of these methods work, however. The header-logo never changes.
I know the documentation says "Scripts and stylesheets must be served with the correct content type or they will not be run by the browser. Scripts must be served with Content-Type: application/javascript and stylesheets with Content-Type: text/css.", but I'm not sure how to 'serve' a file like that if I'm just linking it from an HTTPS server (in this case a gitlab URL).
For the URL of the external file, you can not have it be on github / gitlab. Has to be hosted somewhere else.