PrepullerBuilder

class controller.services.builder.prepuller.PrepullerBuilder(metadata_storage, pull_secret=None)

Bases: object

Construct Kubernetes objects used by the prepuller.

Parameters:
  • metadata_storage (MetadataStorage) – Storage layer for pod metadata about the lab controller itself.

  • pull_secret (str | None, default: None) – Optional name of Secret object to use for pulling images.

Methods Summary

build_pod(image, node)

Construct the pod object for a prepuller pod.

Methods Documentation

build_pod(image, node)

Construct the pod object for a prepuller pod.

Parameters:
  • image (RSPImage) – Image to prepull.

  • node (str) – Node on which to prepull it.

Returns:

Kubernetes Pod object to create.

Return type:

kubernetes_asyncio.client.models.V1Pod