LabStateObjects

class controller.models.domain.lab.LabStateObjects(env_config_map, quota, pod)

Bases: object

All of the Kubernetes objects required to reconstruct lab state.

On startup and reconciliation, these objects are retrieved from Kubernetes for each user with a running lab and are used to recreate the internal state for that user. This is a subset of the objects used to create the lab (see LabObjects).

Parameters:
  • env_config_map (V1ConfigMap)

  • quota (V1ResourceQuota | None)

  • pod (V1Pod)

Attributes Summary

env_config_map

Config map used to hold the environment of the spawned lab.

pod

User's lab pod.

quota

Quota for the user's namespace, if any.

Attributes Documentation

env_config_map: V1ConfigMap = <dataclasses._MISSING_TYPE object>

Config map used to hold the environment of the spawned lab.

pod: V1Pod = <dataclasses._MISSING_TYPE object>

User’s lab pod.

quota: V1ResourceQuota | None = <dataclasses._MISSING_TYPE object>

Quota for the user’s namespace, if any.