Skip to content

Commit dc9f8bf

Browse files
mtilsonTim Bannister
andauthored
Update content/en/docs/reference/kubectl/cheatsheet.md
Co-authored-by: Tim Bannister <[email protected]>
1 parent 1e85065 commit dc9f8bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en/docs/reference/kubectl/cheatsheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ kubectl config set-context gce --user=cluster-admin --namespace=foo \
7474

7575
kubectl config unset users.foo # delete user foo
7676

77-
# short alias to set/show context/namespace (useful for CKAD/CKA exams)
77+
# short alias to set/show context/namespace
7878
alias kn='f() { [ "$1" ] && kubectl config set-context --current --namespace $1 || kubectl config view --minify | grep namespace | cut -d" " -f6 ; } ; f'
7979
alias kx='f() { [ "$1" ] && kubectl config use-context $1 || kubectl config current-context ; } ; f'
8080
```

0 commit comments

Comments
 (0)