mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 18:02:01 +00:00
Merge pull request #113708 from apelisse/fix-ssa-flaky-test
Ignore error when getting api-resources until it's ready
This commit is contained in:
commit
f2fccffd9b
@ -636,7 +636,7 @@ __EOF__
|
|||||||
local tries=5
|
local tries=5
|
||||||
for i in $(seq 1 $tries); do
|
for i in $(seq 1 $tries); do
|
||||||
local output
|
local output
|
||||||
output=$(kubectl "${kube_flags[@]:?}" api-resources --api-group mygroup.example.com -oname)
|
output=$(kubectl "${kube_flags[@]:?}" api-resources --api-group mygroup.example.com -oname || true)
|
||||||
if kube::test::if_has_string "$output" resources.mygroup.example.com; then
|
if kube::test::if_has_string "$output" resources.mygroup.example.com; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user