Add 'get-contexts' (#13677)
Added `kubectl config get-contexts` for completeness
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
f5496b5b5c
commit
b809bdcba0
@@ -62,6 +62,7 @@ KUBECONFIG=~/.kube/config:~/.kube/kubconfig2 kubectl config view
|
||||
kubectl config view -o jsonpath='{.users[?(@.name == "e2e")].user.password}'
|
||||
|
||||
kubectl config view -o jsonpath='{.users[].name}' # get a list of users
|
||||
kubectl config get-contexts # display list of contexts
|
||||
kubectl config current-context # display the current-context
|
||||
kubectl config use-context my-cluster-name # set the default context to my-cluster-name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user