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 d78e2bd commit f1f5eb7Copy full SHA for f1f5eb7
kubectl-node_shell
@@ -119,7 +119,7 @@ if [ "$m" -lt 18 ]; then
119
generator="--generator=run-pod/v1"
120
fi
121
122
-trap "EC=\$?; kubectl delete pod --wait=false $pod $context $kubeconfig $namespace 2>/dev/null; exit \$EC" EXIT INT TERM
+trap "EC=\$?; kubectl delete pod --wait=false $pod $context $kubeconfig $namespace 2>/dev/null || true; exit \$EC" EXIT INT TERM
123
124
echo "spawning \"$pod\" on \"$node\""
125
kubectl run --image "$image" --restart=Never --overrides="$overrides" -ti "$pod" $generator $context $kubeconfig $namespace
0 commit comments