-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into bats/shfmt
- Loading branch information
Showing
71 changed files
with
2,364 additions
and
552 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
# shellcheck shell=bash | ||
about-alias 'kubectl aliases' | ||
|
||
function _set_pkg_aliases() { | ||
if _command_exists kubectl; then | ||
alias kc='kubectl' | ||
alias kcgp='kubectl get pods' | ||
alias kcgd='kubectl get deployments' | ||
alias kcgn='kubectl get nodes' | ||
alias kcdp='kubectl describe pod' | ||
alias kcdd='kubectl describe deployment' | ||
alias kcdn='kubectl describe node' | ||
alias kcgpan='kubectl get pods --all-namespaces' | ||
alias kcgdan='kubectl get deployments --all-namespaces' | ||
# launches a disposable netshoot pod in the k8s cluster | ||
alias kcnetshoot='kubectl run netshoot-$(date +%s) --rm -i --tty --image nicolaka/netshoot -- /bin/bash' | ||
fi | ||
} | ||
|
||
_set_pkg_aliases | ||
if _command_exists kubectl; then | ||
alias kc='kubectl' | ||
alias kcgp='kubectl get pods' | ||
alias kcgd='kubectl get deployments' | ||
alias kcgn='kubectl get nodes' | ||
alias kcdp='kubectl describe pod' | ||
alias kcdd='kubectl describe deployment' | ||
alias kcdn='kubectl describe node' | ||
alias kcgpan='kubectl get pods --all-namespaces' | ||
alias kcgdan='kubectl get deployments --all-namespaces' | ||
# launches a disposable netshoot pod in the k8s cluster | ||
alias kcnetshoot='kubectl run netshoot-$(date +%s) --rm -i --tty --image nicolaka/netshoot -- /bin/bash' | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.