Merge pull request #36700 from ingvagabund/move-export-flag-of-kubectl-to-get-subcommand

Automatic merge from submit-queue (batch tested with PRs 37997, 37939, 37990, 36700, 37258)

--export flag belongs to kubectl get, not kubectl

**What this PR does / why we need it**:

When running the kubectl via symlink to hyperkube, the ``--export`` flag is not delegated to `kubectl get` but to `kubectl` only. Ending with unrecognized flag.
This commit is contained in:
Kubernetes Submit Queue 2016-12-02 19:26:51 -08:00 committed by GitHub
commit 7621ada226

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}