-
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.
remove function wrapper around kubectl alias registration
- Loading branch information
1 parent
1c9cfd0
commit 5f59cb5
Showing
1 changed file
with
13 additions
and
17 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
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 |