Commit 79921234 authored by Jan Chaloupka's avatar Jan Chaloupka

--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.
parent 68a7c2c6
...@@ -34,7 +34,7 @@ kube::test::get_object_assert() { ...@@ -34,7 +34,7 @@ kube::test::get_object_assert() {
local expected=$3 local expected=$3
local args=${4:-} 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 if [[ "$res" =~ ^$expected$ ]]; then
echo -n ${green} echo -n ${green}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment