From 3964d240530a2a22f563ca6f140430b5e3a2d388 Mon Sep 17 00:00:00 2001 From: Peter Mikitsh Date: Mon, 14 Oct 2019 21:55:51 +0000 Subject: [PATCH] fix(cheatsheet): update context cmd description (#15935) * fix(cheatsheet): update context cmd description * chore: remove newline --- content/en/docs/reference/kubectl/cheatsheet.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index b30d633790..befaf15de2 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -62,6 +62,7 @@ kubectl config view # get the password for the e2e user 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 get-contexts # display list of contexts kubectl config current-context # display the current-context