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

allow prettifying the kubectl context and namespace #1326

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

Conversation

tequeter
Copy link

Description

This allows further customization of the displayed context and namespace in the kubectl section.

Use cases: shortening ugly context names maintained by integration tools, adding Unicode candy etc.

It adds two configuration options that may point to functions that will rewrite the context and namespace. See the updated documentation below for more information.

I've used a second set of kube_xxx_pretty variables for the prettified names. This keeps SPACESHIP_KUBECTL_CONTEXT_COLOR_GROUPS unchanged, even when used together with the prettifying functions.

I also stumbled upon some outdated documentation, so I bundled a trivial commit for it in the PR. I hope it's OK.

Screenshot

image

(This demonstrates Unicode eyecandy only: my real, ugly context names have too much customer information.)

@netlify
Copy link

netlify bot commented Jan 31, 2023

Deploy Preview for spaceship-prompt ready!

Name Link
🔨 Latest commit 1c3d8da
🔍 Latest deploy log https://app.netlify.com/sites/spaceship-prompt/deploys/63d98f2c503d4d00082e58b7
😎 Deploy Preview https://deploy-preview-1326--spaceship-prompt.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant