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

Support for configuring dex theme via values.yaml #12560

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

ahmedwaleedmalik
Copy link
Member

@ahmedwaleedmalik ahmedwaleedmalik commented Aug 15, 2023

What this PR does / why we need it:
An important requirement from our customers is to add their own branding for our dashboard and dex. For updating the theme of dex, users can update the files in theme directory which are then propagated and installed in the form of a kubernetes secret.

While this works it also adds a huge limitation since all the files need to exist and be up-to-date in the theme directory before running the installer. This PR adds a way to consume those assets from values.yaml as well. With this change, we don't need to maintain those files anymore, all the user needs is to maintain a single values file.

Which issue(s) this PR fixes:

Fixes #

What type of PR is this?

/kind feature

Special notes for your reviewer:

Does this PR introduce a user-facing change? Then add your Release Note here:

Support for configuring the dex theme via values file.

Documentation:

NONE

@ahmedwaleedmalik ahmedwaleedmalik self-assigned this Aug 15, 2023
@kubermatic-bot kubermatic-bot added docs/none Denotes a PR that doesn't need documentation (changes). release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. sig/app-management Denotes a PR or issue as being assigned to SIG App Management. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 15, 2023
# Theme contains the Dex theme assets converted to string and base64 encoded.
# By default, the assets from `/theme` directory are used.
theme: {}
# favicon.png: iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAGYktHRAD/AP8A/6C9p5MAAAYrSURBVFjDvZdriF1XFcd/e9/nTGbijAEbEnUmbdGGIE4QaYKFTpvaQgWTSijiKxPUVJTSVMEgCBo0UCix1keqIGYqVJsiN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GRhdGU6dGltZXN0YW1wADIwMjMtMDItMjNUMTQ6MjE6MTIrMDA6MDArwTi9AAAAAElFTkSuQmCC
Copy link
Member Author

Choose a reason for hiding this comment

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

Just wanted to keep it here as an example for the users.

@ahmedwaleedmalik
Copy link
Member Author

/cherry-pick release/v2.23

@kubermatic-bot
Copy link
Contributor

@ahmedwaleedmalik: once the present PR merges, I will cherry-pick it on top of release/v2.23 in a new PR and assign it to you.

In response to this:

/cherry-pick release/v2.23

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Contributor

@xrstf xrstf left a comment

Choose a reason for hiding this comment

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

/approve

@kubermatic-bot kubermatic-bot added the lgtm Indicates that a PR is ready to be merged. label Aug 15, 2023
@kubermatic-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 440cc80dddb27356f5221dcd1de3e8b0c223bbe7

@kubermatic-bot kubermatic-bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 15, 2023
@kubermatic-bot kubermatic-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 15, 2023
Signed-off-by: Waleed Malik <ahmedwaleedmalik@gmail.com>
@kubermatic-bot kubermatic-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Aug 15, 2023
@xrstf
Copy link
Contributor

xrstf commented Aug 15, 2023

/approve
/lgtm

@kubermatic-bot kubermatic-bot added the lgtm Indicates that a PR is ready to be merged. label Aug 15, 2023
@kubermatic-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 1faf1ea9de3c94dec2f79a8d1ea4f41d0ad023b9

@kubermatic-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahmedwaleedmalik, xrstf

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubermatic-bot kubermatic-bot merged commit 005285c into kubermatic:main Aug 15, 2023
5 checks passed
@ahmedwaleedmalik ahmedwaleedmalik deleted the update-oauth-chart branch August 15, 2023 17:34
@kubermatic-bot kubermatic-bot added this to the KKP 2.24 milestone Aug 15, 2023
@kubermatic-bot
Copy link
Contributor

@ahmedwaleedmalik: new pull request created: #12562

In response to this:

/cherry-pick release/v2.23

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. customer-request dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. docs/none Denotes a PR that doesn't need documentation (changes). kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/app-management Denotes a PR or issue as being assigned to SIG App Management. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants