Skip to content

Commit

Permalink
allow for node/$nodename resource form (#36)
Browse files Browse the repository at this point in the history
This change will, always, simply filter out `node/` at the beginning of the node name.

Co-authored-by: Andrei Kvapil <[email protected]>
  • Loading branch information
madeddie and kvaps authored Jan 6, 2022
1 parent a8b820a commit c1b05c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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.5.3
version=1.5.4
generator=""
node=""
nodefaultctx=0
Expand Down Expand Up @@ -58,7 +58,7 @@ while [ $# -gt 0 ]; do
;;
*)
if [ -z "$node" ]; then
node="$1"
node="${1#node/}"
shift
else
echo "exactly one node required"
Expand Down

0 comments on commit c1b05c6

Please sign in to comment.