Skip to content

Commit

Permalink
Merge pull request #12 from eldadru/namespace-not-passed-to-ksniff
Browse files Browse the repository at this point in the history
Using KUBECTL_PLUGINS_CURRENT_NAMESPACE instead of KUBECTL_PLUGINS_LO…
  • Loading branch information
eldadru authored Oct 17, 2018
2 parents 71c9147 + a72f856 commit 9d81588
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion ksniff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

POD_NAME=${KUBECTL_PLUGINS_LOCAL_FLAG_POD:-$1}
CONTAINER_NAME=${KUBECTL_PLUGINS_LOCAL_FLAG_CONTAINER}
NAMESPACE_NAME=${KUBECTL_PLUGINS_LOCAL_FLAG_NAMESPACE}
NAMESPACE_NAME=${KUBECTL_PLUGINS_CURRENT_NAMESPACE}
FILTER=${KUBECTL_PLUGINS_LOCAL_FLAG_FILTER}
CONTAINER_FLAG=""
NAMESPACE_FLAG=""
Expand Down
3 changes: 0 additions & 3 deletions plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ flags:
- name: "container"
shorthand: "c"
desc: "Optional. Container name. Used when running multiple containers within a pod. If omitted, the first container in the pod will be chosen."
- name: "namespace"
shorthand: "n"
desc: "Optional. Namespace name. used to specify the target namespace to operate on."
- name: "filter"
shorthand: "f"
desc: "Optional. if specified, will be the tcpdump filter, otherwise no filter will be used."

0 comments on commit 9d81588

Please sign in to comment.