Merge pull request #2166 from cornfeedhobo/rename-kubectl-alias-func

remove function wrapper around kubectl aliases
This commit is contained in:
Noah Gorny
2022-12-04 00:39:49 +02:00
committed by GitHub

View File

@@ -1,8 +1,7 @@
# shellcheck shell=bash
about-alias 'kubectl aliases'
function _set_pkg_aliases() {
if _command_exists kubectl; then
if _command_exists kubectl; then
alias kc='kubectl'
alias kcgp='kubectl get pods'
alias kcgd='kubectl get deployments'
@@ -14,7 +13,4 @@ function _set_pkg_aliases() {
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
fi