Skip to content

feat: allow setting base64 encoded icon strings#11

Open
franklinkim wants to merge 1 commit intowaldur:masterfrom
franklinkim:feature/whitelabeling-icons
Open

feat: allow setting base64 encoded icon strings#11
franklinkim wants to merge 1 commit intowaldur:masterfrom
franklinkim:feature/whitelabeling-icons

Conversation

@franklinkim
Copy link
Contributor

Allow setting icon string directly:

waldur:
  whitelabeling:
    loginLogo: "<base64 encoded string>"
    sidebarLogo: "<base64 encoded string>"
    sidebarLogoDark: "<base64 encoded string>"
    poweredByLogo: "<base64 encoded string>"
    favicon: "<base64 encoded string>"
    heroImage: "<base64 encoded string>"

@livenson
Copy link
Contributor

livenson commented Nov 4, 2025

hi, we had this before but the drawback was the etcd limit of configmap of 1MB that was very hard to enforce then across all settings. Perhaps a different solution could work for you?

@franklinkim
Copy link
Contributor Author

Of cause having the images in there is not really practically and you probably also want to be able to define urls here e.g. loginLogoURL. The main reason here, is that within the template you're using .Files.Get which can only access files within the Chart. Depending on the build system you might just reference it and take care yourself of providing the base64 encoded string from a file outside of the Chart.

@livenson
Copy link
Contributor

Files.Get is tbh a legacy we are moving away from, are you relying on it?

@franklinkim
Copy link
Contributor Author

nothing, we can't change :)

@livenson
Copy link
Contributor

Sorry, didn't get it - if we remove loading of files with Files.Get , will this have any influence on you?

@franklinkim
Copy link
Contributor Author

no, we'll adapt. i would be fine to specify an external http address instead of embedding it

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.

2 participants