From 83978cc429fae44cb8ae2576f11fb66a9be67884 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Wed, 8 Dec 2021 08:34:05 +0000 Subject: [PATCH] Fix namespace selector Signed-off-by: Marcus Noble --- home/.bin/kube-all | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.bin/kube-all b/home/.bin/kube-all index 08d0343..f971236 100755 --- a/home/.bin/kube-all +++ b/home/.bin/kube-all @@ -51,7 +51,7 @@ fi NAMES="$(kubectl api-resources --namespaced --verbs list -o name | tr '\n' ,)" -if [ $ALL_NAMESPACES ]; then +if [[ "$ALL_NAMESPACES" == "true" ]]; then kubectl get "${NAMES::${#NAMES}-1}" --show-kind --ignore-not-found ${LABEL} -A else kubectl get "${NAMES::${#NAMES}-1}" --show-kind --ignore-not-found ${LABEL} -n ${NAMESPACE}