Bug 1844883
| Summary: | When using a customized logo in webconsole, favicon is gone | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Oren Cohen <ocohen> |
| Component: | Management Console | Assignee: | Robb Hamilton <rhamilto> |
| Status: | CLOSED NOTABUG | QA Contact: | Yadan Pei <yapei> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.4 | CC: | aos-bugs, jhadvig, jokerman, tas |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-06-08 14:23:17 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Oren Cohen
2020-06-07 19:36:48 UTC
Closing as NOTABUG as this is an intentional design decision. If the console has a custom logo, no favicon is to supposed to display as we did not create a mechanism to specify a custom favicon and do not want to show the OpenShift or OKD favicons if customization is set so as to avoid any branding bleeding through. Thanks. Please consider it as an RFE to allow the user to manually set the favicon (restricting its size to 32x32 pixels). We've worked around this issue by creating a route. There are many icons to choose from within "/static/assets/", so your clusters favicons can be unique.
As its a new resource it is not managed by or overwritten by the operator.
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: console-custom-favicon
namespace: openshift-console
labels:
app: console
annotations:
haproxy.router.openshift.io/rewrite-target: /static/assets/openshift-favicon.png
spec:
host: <Same as console or console custom host>
path: /favicon.ico
to:
kind: Service
name: console
weight: 100
port:
targetPort: https
tls:
termination: reencrypt
insecureEdgeTerminationPolicy: Redirect
wildcardPolicy: None
Thank you very much for the tip, @tas , it works perfectly. Any idea how to add a custom logo file to "/static/assets/" ? That would require mounting additional resources in to the pod and in order to do that without the console operator undoing your changes would be to change its managementState to Unmanaged. The only time we are able to mount a custom image is via custom-logos. So alternatively, if your custom icon is proportionally sized, you can set the rewrite-target to: "/custom-logo" and the browser should resize the favicon to 32x32. Thanks, that works either! Finally there's a solution to the problem I posted in the BZ a year ago. Better late than never :) |