--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:
Jan Chaloupka 2016-11-12 16:57:17 +01:00
parent 68a7c2c6b5
commit 7992123449

View File

@ -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}