mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
Ignore error when getting api-resources until it's ready
This commit is contained in:
parent
a236e4ca6f
commit
7596488769
@ -477,7 +477,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
|
||||
|
Loading…
Reference in New Issue
Block a user