File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22set -e
33
44kubectl=kubectl
5- version=1.8.1
5+ version=1.9.0
66generator=" "
77node=" "
88nodefaultctx=0
@@ -13,6 +13,7 @@ volumes="[]"
1313volume_mounts=" []"
1414x_mode=0
1515labels=" ${KUBECTL_NODE_SHELL_LABELS} "
16+ pod_running_timeout=" ${KUBECTL_NODE_SHELL_POD_RUNNING_TIMEOUT:- 1m} "
1617
1718if [ -t 0 ]; then
1819 tty=true
181182trap " EC=\$ ?; $kubectl delete pod --wait=false $pod >&2 || true; exit \$ EC" EXIT INT TERM
182183
183184echo " spawning \" $pod \" on \" $node \" " >&2
184- $kubectl run --image " $image " --restart=Never --overrides=" $overrides " --labels=" $labels " $( [ " $tty " = true ] && echo -t) -i " $pod " $generator
185+ $kubectl run --image " $image " --restart=Never --overrides=" $overrides " --labels=" $labels " --pod-running-timeout= " $pod_running_timeout " $( [ " $tty " = true ] && echo -t) -i " $pod " $generator
You can’t perform that action at this time.
0 commit comments