We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aae8212 commit 33083a9Copy full SHA for 33083a9
kubectl-node_shell
@@ -65,8 +65,8 @@ while [ $# -gt 0 ]; do
65
done
66
67
# Set the default context and namespace to avoid situations where the user switch them during the build process
68
-[ "$nodefaultctx" = 1 ] || kubectl="$kubectl --context=$(kubectl config current-context)"
69
-[ "$nodefaultns" = 1 ] || kubectl="$kubectl --namespace=$(kubectl config view --minify --output 'jsonpath={.contexts..namespace}')"
+[ "$nodefaultctx" = 1 ] || kubectl="$kubectl --context=$(${kubectl} config current-context)"
+[ "$nodefaultns" = 1 ] || kubectl="$kubectl --namespace=$(${kubectl} config view --minify --output 'jsonpath={.contexts..namespace}')"
70
71
while [ $# -gt 0 ]; do
72
cmd="$cmd\"$1\", "
0 commit comments