mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 00:34:10 -04:00
--export flag belongs to kubectl get, not kubectl
When running the kubectl via symlink to hyperkube, the --export is not delegated to 'kubectl get' but to 'kubectl' only. Ending with unrecognized flag.
This commit is contained in:
parent
68a7c2c6b5
commit
7992123449
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ kube::test::get_object_assert() {
|
|||
local expected=$3
|
||||
local args=${4:-}
|
||||
|
||||
res=$(eval kubectl ${args} get "${kube_flags[@]}" $object -o go-template=\"$request\")
|
||||
res=$(eval kubectl get "${kube_flags[@]}" ${args} $object -o go-template=\"$request\")
|
||||
|
||||
if [[ "$res" =~ ^$expected$ ]]; then
|
||||
echo -n ${green}
|
||||
|
|
|
|||
Loading…
Reference in a new issue