From 8dd6fa677db718a2c7451eed0333ec9a0007a6a0 Mon Sep 17 00:00:00 2001 From: Brett Wolmarans Date: Wed, 2 Mar 2022 09:21:06 -0800 Subject: [PATCH 1/2] --all-namespaces shorthand As a beginner to kubectl, I must have typed (and re-typed due to typos) --all-namespaces many hundreds of times before I stumbled across the -A shorthand notation for this. I sincerely would be grateful on behalf of all kubectl beginners if this very useful cheat could be added to this cheatsheet. I have proposed in this PR a location quite near the beginning of the cheatsheet for this so that it is very hard to miss. --- content/en/docs/reference/kubectl/cheatsheet.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index b3c3536b31..cb3aa1f27b 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -38,6 +38,11 @@ complete -F __start_kubectl k source <(kubectl completion zsh) # setup autocomplete in zsh into the current shell echo "[[ $commands[kubectl] ]] && source <(kubectl completion zsh)" >> ~/.zshrc # add autocomplete permanently to your zsh shell ``` +### A Note on --all-namespaces + +Appending --all-namespaces happens frequently enough where you should be aware of the shorthand for --all-namespaces: + +```kubectl -A``` ## Kubectl context and configuration From 2d69c477827e1590ecfd25b6d0cd9c4be572ce88 Mon Sep 17 00:00:00 2001 From: Brett Wolmarans Date: Thu, 24 Mar 2022 10:29:42 -0700 Subject: [PATCH 2/2] Update content/en/docs/reference/kubectl/cheatsheet.md Co-authored-by: Tim Bannister --- 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 cb3aa1f27b..eeee1df93e 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -40,7 +40,7 @@ echo "[[ $commands[kubectl] ]] && source <(kubectl completion zsh)" >> ~/.zshrc ``` ### A Note on --all-namespaces -Appending --all-namespaces happens frequently enough where you should be aware of the shorthand for --all-namespaces: +Appending `--all-namespaces` happens frequently enough where you should be aware of the shorthand for `--all-namespaces`: ```kubectl -A```