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

feat(setting): change ui-pl and ui-brand by rancher-manager-support #3784

Merged
merged 2 commits into from
Jun 1, 2023

Conversation

FrankYang0529
Copy link
Member

@FrankYang0529 FrankYang0529 commented Apr 18, 2023

Solution:
Fix dashboard brand.

Related Issue:
#2679

Test plan:

  1. Patch harvester image or create new cluster from iso
  2. Show Harvester logo and Harvester label in the web brower tab
  3. Update rancher-manager-support to true.
  4. Show Rancher logo and Rancher label in the web brower tab
  5. Update rancher-manager-support to false.
  6. Show Harvester logo and Harvester label in the web brower tab

@futuretea
Copy link
Contributor

find some code about ui-pl:

var UpdateRancherUISettings = map[string]string{

@FrankYang0529
Copy link
Member Author

var UpdateRancherUISettings = map[string]string{

This part is about updating Default value.

@FrankYang0529 FrankYang0529 changed the title feat(setting): change ui-pl by rancher-manager-support feat(setting): change ui-pl and ui-brand by rancher-manager-support Apr 19, 2023
@ibrokethecloud
Copy link
Contributor

should we document that while using embedded rancher in mcm mode, the end users cannot change the ui-pl or ui-brand settings?

}

uiPLCopy := uiPL.DeepCopy()
if enable {
Copy link
Contributor

Choose a reason for hiding this comment

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

the default value of the setting is already rancher and is applied with left empty.

should we following the same logic as we do for ui-brand and leave it empty when enabled?

On an existing install they are already empty.

(⎈|local:N/A)➜  harvester git:(update-ui-pl) ✗ k get settings.management ui-pl ui-brand
NAME       VALUE
ui-pl
ui-brand

Copy link
Contributor

@futuretea futuretea May 31, 2023

Choose a reason for hiding this comment

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

the default value of ui-pl in Harvester is patched to "Harvester" in

for name, value := range UpdateRancherUISettings {
.

Copy link
Contributor

@futuretea futuretea May 31, 2023

Choose a reason for hiding this comment

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

The UI currently uses this ui-pl default value "Harvester" to decide whether to display the bootstrap password box on the first login.
I will communicate with @WuJun2016 and create an issue to deal with the default value of ui-pl.

@WuJun2016
Copy link
Contributor

Associated UI pr and feature: #3396

@WuJun2016
Copy link
Contributor

WuJun2016 commented May 23, 2023

should we document that while using embedded rancher in mcm mode, the end users cannot change the ui-pl or ui-brand settings?

@ibrokethecloud ui-pl and ui-brand should be customizable by the users. As shown in the diagram below, users may want to differentiate different clusters by customizing the names.

harvester page:
image

rancher page:
image

Signed-off-by: Frank Yang <poan.yang@suse.com>
@futuretea futuretea marked this pull request as draft May 30, 2023 09:51
@futuretea futuretea self-assigned this May 31, 2023
@futuretea futuretea marked this pull request as ready for review May 31, 2023 02:14
Signed-off-by: futuretea <Hang.Yu@suse.com>
@futuretea
Copy link
Contributor

Add a patch commit to this PR, need review again.

Copy link
Contributor

@ibrokethecloud ibrokethecloud left a comment

Choose a reason for hiding this comment

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

thanks for the PR. LGTM.

Copy link
Member

@bk201 bk201 left a comment

Choose a reason for hiding this comment

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

lgtm, thanks for continuing the PR.

Copy link
Contributor

@guangbochen guangbochen left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@guangbochen guangbochen merged commit aec02d9 into harvester:master Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants