Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 1.15 KB

README.md

File metadata and controls

22 lines (18 loc) · 1.15 KB

vke-prompt

vke_bash_prompt.sh adds a Vmware Cloud PKS (formerly VKE) prompt to your PS1. Source this script from your .bash_profile and, in a new shell, enter vke_prompt on to display the Cloud PKS prompt. Remove the Cloud PKS prompt by entering vke_prompt off.

screencast demo of the vke prompt

Using with kube-ps1

You can hide the K8s current context in this prompt using export VKE_PROMPT_CONTEXT_ENABLED='off'. Useful if you're already using something like kube-ps1.

Pre-requisites

jq is used to parse JSON responses from the Cloud PKS CLI.

Other Cloud PKS utilities

You may have use for some other Cloud PKS projects: