Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate favicon Route if a custom logo is configured #34

Merged
merged 2 commits into from
Jun 13, 2022

Conversation

simu
Copy link
Member

@simu simu commented Jun 9, 2022

When the OCP console is customized, the default favicon is not served, which is an intentional design decision, as documented in https://bugzilla.redhat.com/show_bug.cgi?id=1844883#c1.

However, that bugzilla provides a workaround to restore the default favicon when the console is customized, cf. https://bugzilla.redhat.com/show_bug.cgi?id=1844883#c3. We implement this workaround in this commit if the console logo is customized, and a custom hostname is configured, as we otherwise can't configure spec.hostname for the additional route.

Ideally, we'd like to allow users to configure a custom favicon if they're customizing the logo, but that's currently not possible.

Fixes #27

Checklist

  • PR contains a single logical change (to build a better changelog).
  • Update the documentation.
  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.
  • Link this PR to related issues or PRs.

@simu simu added the bug Something isn't working label Jun 9, 2022
@simu simu changed the title Fix/custom logo favicon Generate favicon Route if a custom logo is configured Jun 9, 2022
@simu simu changed the title Generate favicon Route if a custom logo is configured Generate favicon Route if a custom logo is configured Jun 9, 2022
@simu simu force-pushed the fix/custom-logo-favicon branch 2 times, most recently from a995157 to 45453b8 Compare June 10, 2022 08:51
@simu simu marked this pull request as ready for review June 10, 2022 09:22
@simu simu requested a review from bastjan June 10, 2022 09:23
simu added 2 commits June 10, 2022 14:08
When the OCP console is customized, the default favicon is not served,
which is an intentional design decision, as documented in
https://bugzilla.redhat.com/show_bug.cgi?id=1844883#c1.

However, that bugzilla provides a workaround to restore the default
favicon when the console is customized, cf.
https://bugzilla.redhat.com/show_bug.cgi?id=1844883#c3.

We implement this workaround in this commit if the console logo is
customized, and a custom hostname is configured, as we otherwise can't
configure `spec.hostname` for the additional route.

Ideally, we'd like to allow users to configure a custom favicon if
they're customizing the logo, but that's currently not possible.

Fixes #27
Copy link
Contributor

@bastjan bastjan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay, LGTM!

@simu simu merged commit e762b88 into master Jun 13, 2022
@simu simu deleted the fix/custom-logo-favicon branch June 13, 2022 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configuring a custom logo, drops the favicon
2 participants