From 89cc4117377e532b3a4b8868fd55b14187efacc2 Mon Sep 17 00:00:00 2001 From: Peter Mikitsh Date: Mon, 19 Aug 2019 00:08:36 -0700 Subject: [PATCH 1/2] fix(cheatsheet): update context cmd description --- content/en/docs/reference/kubectl/cheatsheet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index ecec12f3be4b7..6a9f28f5ea900 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -62,7 +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}' # get a list of users +kubectl config view -o jsonpath='{.users[].name}' # display the first user 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 From 0d233598e767d45316274fd95ef82a0a971dc29d Mon Sep 17 00:00:00 2001 From: Peter Mikitsh Date: Wed, 9 Oct 2019 19:29:41 -0700 Subject: [PATCH 2/2] chore: remove newline --- content/en/docs/reference/kubectl/cheatsheet.md | 1 - 1 file changed, 1 deletion(-) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index 9e3ef33d72f1b..befaf15de2923 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -62,7 +62,6 @@ 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