Merge pull request #114627 from ardaguclu/fix-discovery-flaky

Ignore api-resources not found error until it's ready
This commit is contained in:
Kubernetes Prow Robot 2022-12-21 13:53:40 -08:00 committed by GitHub
commit 4a5d8a4b08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ __EOF__
local tries=5
for i in $(seq 1 $tries); do
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
break
fi

View File

@ -512,7 +512,7 @@ __EOF__
local tries=5
for i in $(seq 1 $tries); do
local output
output=$(kubectl "${kube_flags[@]:?}" api-resources --api-group example.com -oname)
output=$(kubectl "${kube_flags[@]:?}" api-resources --api-group example.com -oname || true)
if kube::test::if_has_string "$output" deprecated.example.com; then
break
fi