From 1568e5a56f691b588ab326bbc39ec7dd5306d240 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Wed, 15 Dec 2021 10:46:43 +0000 Subject: [PATCH] Ensure default namespace is used Signed-off-by: Marcus Noble --- home/.bin/kube-shell | 1 + 1 file changed, 1 insertion(+) diff --git a/home/.bin/kube-shell b/home/.bin/kube-shell index e74a0c9..0ccca34 100755 --- a/home/.bin/kube-shell +++ b/home/.bin/kube-shell @@ -52,6 +52,7 @@ while test $# -gt 0; do esac done +NAMESPACE=${NAMESPACE:-default} echo kubectl run -it --namespace $NAMESPACE $POD --image $IMAGE --restart Never --rm -- $CMD kubectl run -it --namespace $NAMESPACE $POD --image $IMAGE --restart Never --rm -- $CMD