Comments (2)
kube-ps1 does use the context name, not the cluster name:
KUBE_PS1_CONTEXT="$(${KUBE_PS1_BINARY} config current-context 2>/dev/null)"
You can set aliases in your kubeconfig file to organize the names, example:
kubectl config rename-context $(kubectl config current-context) test-alias
from kube-ps1.
Closing this issue. Solution above should provide necessary data on the prompt.
from kube-ps1.
Related Issues (20)
- Update install instructions from zplugin to zinit
- feat: it'd be cool if kube-ps1 could turn on/off if the pwd has .yaml or other k8s associated files in it HOT 1
- Turn off by default when launching zsh HOT 4
- Prompt continues to show deleted context HOT 1
- Support for cloud providers HOT 1
- Seems to constantly hit the AWS api? HOT 1
- Need some help setting up HOT 5
- Minor typo in kubeon help message HOT 1
- _kube_ps1_file_newer_than:16: division by zero HOT 4
- New release? HOT 1
- Add variable to disable display context HOT 4
- possible to switch over to openshift logo/icon? HOT 1
- the KUBE_PS1* configuration env vars dominate tab completion HOT 3
- About `KUBE_PS1_SHELL` HOT 2
- Latest VScode 1.74 breaks kube-ps1: character not in range HOT 1
- kubeon/kubeoff does not change prompt when added as oh-my-zsh plugin HOT 10
- installing in Windows HOT 2
- Running kube_ps1 in bash function returns blank HOT 5
- A few questions about the documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kube-ps1.