def list_resources(resources = nil, **options)
      cached_clients = @api_clients.size.positive?
      resources ||= self.resources.select(&:list?)

      begin
        ResourceClient.list(resources, @transport, **options)
      rescue K8s::Error::NotFound
        raise unless cached_clients

        cached_clients = false
        api_groups!
        retry
      end
    end
def list_resources(resources = nil, **options)
      cached_clients = @api_clients.size.positive?
      resources ||= self.resources.select(&:list?)

      begin
        ResourceClient.list(resources, @transport, **options)
      rescue K8s::Error::NotFound
        raise unless cached_clients

        cached_clients = false
        api_groups!
        retry
      end
    end
Pipeline list requests for multiple resource types.

 Returns flattened array with mixed resource kinds.

 @param resources [Array<K8s::ResourceClient>] default is all listable resources for api
 @param options @see K8s::ResourceClient#list
 @return [Array<K8s::Resource>]