mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
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:
commit
7621ada226
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user