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 156053f commit e05d44cCopy full SHA for e05d44c
kubectl-node_shell
@@ -74,7 +74,7 @@ while [ $# -gt 0 ]; do
74
shift
75
done
76
if [ "$custom" = true ]; then
77
- cmd="$(echo "$cmd" | awk '1' RS=', \n') ]"
+ cmd="$(echo "$cmd" | awk '{sub(/..$/,"",$0); print $0}') ]"
78
else
79
cmd="$cmd\"bash\", \"-l\" ]"
80
fi
@@ -88,7 +88,7 @@ image="docker.io/library/alpine"
88
pod="nsenter-$(env LC_ALL=C tr -dc a-z0-9 </dev/urandom | head -c 6)"
89
90
# Check the node
91
-kubectl get node "$node" $context $kubeconfig >/dev/null || exit 1
+$kubectl get node "$node" >/dev/null || exit 1
92
93
overrides="$(
94
cat <<EOT
0 commit comments