fix(cheatsheet): update context cmd description (#15935)
* fix(cheatsheet): update context cmd description * chore: remove newlinepull/16913/head
parent
0c540ca8e7
commit
3964d24053
|
@ -62,6 +62,7 @@ kubectl config view
|
||||||
# get the password for the e2e user
|
# get the password for the e2e user
|
||||||
kubectl config view -o jsonpath='{.users[?(@.name == "e2e")].user.password}'
|
kubectl config view -o jsonpath='{.users[?(@.name == "e2e")].user.password}'
|
||||||
|
|
||||||
|
kubectl config view -o jsonpath='{.users[].name}' # display the first user
|
||||||
kubectl config view -o jsonpath='{.users[*].name}' # get a list of users
|
kubectl config view -o jsonpath='{.users[*].name}' # get a list of users
|
||||||
kubectl config get-contexts # display list of contexts
|
kubectl config get-contexts # display list of contexts
|
||||||
kubectl config current-context # display the current-context
|
kubectl config current-context # display the current-context
|
||||||
|
|
Loading…
Reference in New Issue