Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion kubectl-node_shell
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e

kubectl=kubectl
version=1.11.0
version=1.11.1
generator=""
node=""
nodefaultctx=0
Expand All @@ -21,6 +21,7 @@ use_mount=true
use_pid=true
use_net=true
use_uts=true
priority_class=""

if [ -t 0 ]; then
tty=true
Expand Down Expand Up @@ -103,6 +104,15 @@ while [ $# -gt 0 ]; do
use_uts=false
shift
;;
--priority-class)
priority_class="$2"
shift
shift
;;
--priority-class=*)
priority_class="${key##*=}"
shift
;;
--)
shift
break
Expand Down Expand Up @@ -217,6 +227,7 @@ cat <<EOT
"hostIPC": $use_ipc,
"hostNetwork": $use_net,
"imagePullSecrets": $image_pull_secrets,
"priorityClassName": "$priority_class",
"containers": [
{
"securityContext": $security_context,
Expand Down