Method: K8s::Client#resources
- Defined in:
- lib/k8s/client.rb
#resources(namespace: nil) ⇒ Array<K8s::ResourceClient>
181 182 183 184 185 186 187 188 189 |
# File 'lib/k8s/client.rb', line 181 def resources(namespace: nil) apis(prefetch_resources: true).map { |api| begin api.resources(namespace: namespace) rescue K8s::Error::ServiceUnavailable, K8s::Error::NotFound [] end }.flatten end |