diff --git a/Makefile b/Makefile index 16992e4..9b45c5f 100644 --- a/Makefile +++ b/Makefile @@ -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}) diff --git a/release/kubectl-plslogs-v0.1.0.tar.gz b/release/kubectl-plslogs-v0.1.0.tar.gz deleted file mode 100644 index 902175a..0000000 --- a/release/kubectl-plslogs-v0.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:de7a55d7b44a78f75885f3b5a97703b68ebf9fa6386940d40ab830b201da1161 -size 1957 diff --git a/src/ls/kubels b/src/ls/kubels index 30266b1..dbc281a 100755 --- a/src/ls/kubels +++ b/src/ls/kubels @@ -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