Closed tweeks-reify closed 7 months ago
Thanks for the PR. This would be a good fit for the available functions: https://github.com/jonmosco/kube-ps1?tab=readme-ov-file#customize-display-of-cluster-name-and-namespace
Also, I usually script the long names for other k8s platforms as well (eg, OpenShift: oc config rename-context $(oc config current-context) aws-short-name
).
A quick QOL PR to remove the
arn
from EKS clusters by using an env var to keep the CLI prompt short.PS1='$(kube_ps1)'$PS1
KUBE_EKS_MODE_ENABLED=true PS1='$(kube_ps1)'$PS1