This commit is contained in:
bryan 2024-06-05 23:24:12 +08:00
parent 1c33a1fed6
commit 781654eca1
3 changed files with 9 additions and 4 deletions

View File

@ -6,7 +6,7 @@ SHELL=/bin/bash
APPNAME ?= kubectl-plugins
APPVERSION ?= v0.1.0
APPVERSION ?= v0.1.1
PLUGINS=ls
PLUGINS_BUILD=$(foreach plugin, $(PLUGINS), build-${plugin})

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:de7a55d7b44a78f75885f3b5a97703b68ebf9fa6386940d40ab830b201da1161
size 1957

View File

@ -37,6 +37,14 @@ function main() {
if [[ "$act" =~ -h|--help|help ]]; then
usage
exit 0
elif [[ "$act $res" == "logs " ]]; then
_kube_list_pods "$cur_ns_arg"
shift 1
$KUBECTL "$act" "$sel_pod" --tail 100 -f
elif [[ "$act $res" == "exec " ]]; then
_kube_list_pods "$cur_ns_arg"
shift 1
$KUBECTL "$act" "$sel_pod" -it -- sh
elif [[ "$act" =~ logs|exec|describe ]]; then
_kube_list_pods "$cur_ns_arg"
shift 1