The find_api_resource and client_for_resource methods will raise K8s::Error::UndefinedResource when something is not found. The collections are cached indefinitely, so the error will be raised until a new client instance is created, even if the resource becomes available.
If the cache was cleared before raising the exception, then the user could do something like:
begin
client.find_api_resource(xyz)
rescue K8s::Error::UndefinedResource
sleep 2
retry
end
The
find_api_resource
andclient_for_resource
methods will raiseK8s::Error::UndefinedResource
when something is not found. The collections are cached indefinitely, so the error will be raised until a new client instance is created, even if the resource becomes available.If the cache was cleared before raising the exception, then the user could do something like: