Skip to content

Commit 80d9917

Browse files
committed
better support for long parameters
1 parent 32f2459 commit 80d9917

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

kubectl-node_shell

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ while [ $# -gt 0 ]; do
1414
shift
1515
shift
1616
;;
17+
--kubecontext=*)
18+
context="--context=${key##*=}"
19+
shift
20+
;;
1721
--kubeconfig)
1822
kubeconfig="--kubeconfig $2"
1923
shift
@@ -24,6 +28,10 @@ while [ $# -gt 0 ]; do
2428
shift
2529
shift
2630
;;
31+
--namespace=*)
32+
namespace="--namespace=${key##*=}"
33+
shift
34+
;;
2735
*)
2836
node="$1"
2937
shift

0 commit comments

Comments
 (0)