mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
Ignore api-resources not found error until it's ready
This commit is contained in:
parent
0fdb14f63a
commit
a5698efff2
@ -159,7 +159,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
|
||||||
|
@ -512,7 +512,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 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
|
if kube::test::if_has_string "$output" deprecated.example.com; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user