NodeStorage#

class controller.storage.kubernetes.node.NodeStorage(api_client, logger)#

Bases: object

Storage layer for Kubernetes node objects.

Parameters:
  • api_client (ApiClient) – Kubernetes API client.

  • logger (BoundLogger) – Logger to use.

Methods Summary

get_image_data(node_selector, timeout)

Get the list of cached images from each node.

Methods Documentation

async get_image_data(node_selector, timeout)#

Get the list of cached images from each node.

Parameters:
  • node_selector (dict[str, str]) – Node selector rules to restrict the list of nodes of interest.

  • timeout (Timeout) – Timeout for call.

Returns:

Map of nodes to lists of all cached images on that node.

Return type:

dict of list