remove function wrapper around kubectl alias registration

pull/2166/head
cornfeedhobo 2022-09-30 11:29:35 -05:00
parent 1c9cfd056b
commit 5f59cb5438
No known key found for this signature in database
GPG Key ID: 724357093F994B26
1 changed files with 13 additions and 17 deletions

View File

@ -1,8 +1,7 @@
# shellcheck shell=bash # shellcheck shell=bash
about-alias 'kubectl aliases' about-alias 'kubectl aliases'
function _set_pkg_aliases() { if _command_exists kubectl; then
if _command_exists kubectl; then
alias kc='kubectl' alias kc='kubectl'
alias kcgp='kubectl get pods' alias kcgp='kubectl get pods'
alias kcgd='kubectl get deployments' alias kcgd='kubectl get deployments'
@ -14,7 +13,4 @@ function _set_pkg_aliases() {
alias kcgdan='kubectl get deployments --all-namespaces' alias kcgdan='kubectl get deployments --all-namespaces'
# launches a disposable netshoot pod in the k8s cluster # launches a disposable netshoot pod in the k8s cluster
alias kcnetshoot='kubectl run netshoot-$(date +%s) --rm -i --tty --image nicolaka/netshoot -- /bin/bash' alias kcnetshoot='kubectl run netshoot-$(date +%s) --rm -i --tty --image nicolaka/netshoot -- /bin/bash'
fi fi
}
_set_pkg_aliases