Skip to content

Feature/dynamic logo from skin #3225

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

AoKoori
Copy link

@AoKoori AoKoori commented Mar 19, 2025

Feat(logo): load logo from skin :

Add feature to modify displayed logo in K9s console from skins

Description :

This PR introduces a new feature that allows users to modify the displayed logo in the K9s console by loading it from the skin of the context.

Changes :

Feature Implementation :

Added functionality to load and display the logo from the context skin in the K9s console.
Updated the configuration to support custom logos.

How to load a custom logo :

it's really simple in your skin put this or create your own ascii art
(k9s skin doc)

# Skin...
k9s:
  body:
    logoUrl: https://raw.githubusercontent.com/AoKoori/k9s/refs/heads/Feature/dynamic-logo-from-skin/assets/dev.txt
#   You can also use local file
#   logoUrl: file:<absolute-path-to-your-file>   
    fgColor: red
    bgColor: default
    logoColor: red

Testing :

  • Manual testing performed to ensure the logo is correctly loaded and displayed from the context skin.
  • Manual testing performed to ensure the default logo is displayed if none is provided in the skin.

Screenshots :

Here are some exemples
image
image

@AoKoori
Copy link
Author

AoKoori commented Mar 19, 2025

Clean PR of #3180

@AoKoori AoKoori mentioned this pull request Mar 19, 2025
2 tasks
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.

1 participant