Internal Nublado controller API¶
The Nublado controller is built as a Docker image intended for deployment in a Kubernetes cluster using Phalanx and is not supported as an installed Python module. This documentation therefore exists only to assist developers and code analysis and does not define a supported API.
controller Package¶
The Nublado controller service.
Variables¶
The application version string (PEP 440 / SemVer compatible). |
controller.background Module¶
Nublado controller background processing.
Classes¶
|
Manage Nublado controller background tasks. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.background.BackgroundTaskManager](../../_images/inheritance-c6ec7ff769697f21316ecbba7f0a855a13904c5e.png)
controller.config Module¶
Global configuration parsing.
Classes¶
Source of a volume to be mounted in the lab. |
|
Nublado controller configuration. |
|
Docker image that may be run as a container. |
|
Configuration when user file servers are disabled. |
|
Configuration for enabled user file servers. |
|
Base configuration for user file servers. |
|
Path on Kubernetes node to mount in the container. |
|
Configuration for spawning user labs. |
|
A container to run as an init container before the user's lab. |
|
Rules for |
|
A secret to make available to lab containers. |
|
Possible size of lab. |
|
NFS volume to mount in the container. |
|
Resources for a persistent volume claim. |
|
A PVC to create to materialize the volume to mount in the container. |
|
|
Whether |
|
Algorithm for building a user's home directory path. |
A volume that may be mounted inside a container. |
|
The mount of a volume inside a container. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.config.BaseVolumeSource, controller.config.Config, controller.config.ContainerImage, controller.config.DisabledFileserverConfig, controller.config.EnabledFileserverConfig, controller.config.FileserverConfig, controller.config.HostPathVolumeSource, controller.config.LabConfig, controller.config.LabInitContainer, controller.config.LabNSSFiles, controller.config.LabSecret, controller.config.LabSizeDefinition, controller.config.NFSVolumeSource, controller.config.PVCVolumeResources, controller.config.PVCVolumeSource, controller.config.TmpSource, controller.config.UserHomeDirectorySchema, controller.config.VolumeConfig, controller.config.VolumeMountConfig](../../_images/inheritance-2a784144f1b4bd38254b77619c3bfa7204778aa7.png)
controller.constants Module¶
Global constants.
Variables¶
Annotations to add to most created objects. |
|
Default path to controller configuration. |
|
Default path to the Docker API secrets. |
|
Used in the lab form for |
|
Regex matching all valid group names. |
|
How frequently to refresh file server state from Kubernetes. |
|
How frequently to refresh the list of remote and cached images. |
|
Pattern matching valid Kubernetes names. |
|
How long to wait for generic sequences of Kubernetes API calls. |
|
How frequently to refresh user lab state from Kubernetes. |
|
Ratio of lab resource limits to requests. |
|
Ratio of maximum memory size to maximum size of |
|
Default path to injected pod metadata. |
|
How long to wait for a prepuller pod to spawn and finish running. |
|
Environment variables reserved to the controller or JupyterHub. |
|
Paths within the lab that are reserved for special purposes. |
|
Regex matching all valid usernames. |
controller.dependencies.config Module¶
Config dependency.
Classes¶
|
Dependency to manage a cached Nublado controller configuration. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.dependencies.config.ConfigDependency](../../_images/inheritance-fddaab30f18ec97df6d939266cf954ee05b6a52b.png)
controller.dependencies.context Module¶
Request context management.
ContextDependency
is an all-in-one dependency, because managing individual
dependencies turned out to be a real pain. It’s designed to capture the
context of any request. It requires that a Config
object
has been loaded before it can be instantiated.
Classes¶
Provide a per-request context as a FastAPI dependency. |
|
|
Holds the incoming request and its surrounding context. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.dependencies.context.ContextDependency, controller.dependencies.context.RequestContext](../../_images/inheritance-b9154ab258fd66c76dc756ff254f0a8aea42ed8f.png)
controller.dependencies.user Module¶
User and authentication dependencies for FastAPI.
Functions¶
|
Return the validated user for the given request. |
|
Validate and return the username in the request path. |
controller.exceptions Module¶
Exceptions for the Nublado lab controller.
Classes¶
|
Wraps |
|
An API call to a Docker Registry failed. |
|
Multiple Kubernetes objects were found when one was expected. |
|
Unable to parse the reply from Gafaelfawr. |
|
An API call to Gafaelfawr failed. |
|
The user's quota is insufficient to satisfy this request. |
|
Docker reference does not contain a tag. |
|
The provided lab size is not one of the configured sizes. |
|
The delegated user token is invalid. |
|
An API call to Kubernetes failed. |
|
An error occurred when deleting a lab. |
|
Lab creation was attempted for a user with an active lab. |
|
An expected Kubernetes object is missing. |
|
Secret specified in the controller configuration was not found. |
|
No operation was in progress when attempting to wait. |
|
An attempt was made to use a disabled service. |
|
Attempt to perform an operation when another is in progress. |
|
Attempt to access a resource for another user. |
|
Cannot find a Docker image matching the requested parameters. |
|
No resource has been created for this user. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.exceptions.ControllerTimeoutError, controller.exceptions.DockerRegistryError, controller.exceptions.DuplicateObjectError, controller.exceptions.GafaelfawrParseError, controller.exceptions.GafaelfawrWebError, controller.exceptions.InsufficientQuotaError, controller.exceptions.InvalidDockerReferenceError, controller.exceptions.InvalidLabSizeError, controller.exceptions.InvalidTokenError, controller.exceptions.KubernetesError, controller.exceptions.LabDeletionError, controller.exceptions.LabExistsError, controller.exceptions.MissingObjectError, controller.exceptions.MissingSecretError, controller.exceptions.NoOperationError, controller.exceptions.NotConfiguredError, controller.exceptions.OperationConflictError, controller.exceptions.PermissionDeniedError, controller.exceptions.UnknownDockerImageError, controller.exceptions.UnknownUserError](../../_images/inheritance-89c19564632fea0e2e16edea932abeed54d1c3d4.png)
controller.factory Module¶
Component factory and global and per-request context management.
Classes¶
|
Build lab controller components. |
|
Per-process global application state. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.factory.Factory, controller.factory.ProcessContext](../../_images/inheritance-04f3dd34c3253b9e208cd78a3fa250fa3c4b7368.png)
controller.main Module¶
The main application factory for the Nublado controller service.
Functions¶
|
Create the FastAPI application. |
controller.models.domain.docker Module¶
Domain models for talking to the Docker API.
Classes¶
|
Holds the credentials for one Docker API server. |
|
Parses a Docker reference. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.models.domain.docker.DockerCredentials, controller.models.domain.docker.DockerReference](../../_images/inheritance-7960aa0c017ecb9139d793fc170b5d345e1fa603.png)
controller.models.domain.fileserver Module¶
Models for the fileserver state.
Classes¶
|
All of the Kubernetes objects making up a user's fileserver. |
|
Kubernetes objects used for inspecting the state of a fileserver. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.models.domain.fileserver.FileserverObjects, controller.models.domain.fileserver.FileserverStateObjects](../../_images/inheritance-8b1c878d6525f8cb84fc72c3b56fd4fb570b9eea.png)
controller.models.domain.gafaelfawr Module¶
Models for talking to Gafaelfawr.
Ideally, these should use the same models Gafaelfawr itself uses. Until that’s possible via a PyPI library, these models are largely copied from Gafaelfawr.
Classes¶
User information from Gafaelfawr supplemented with the user's token. |
|
User metadata from Gafaelfawr. |
|
Notebook Aspect quota information for a user. |
|
Gafaelfawr's representation of a single group. |
|
Quota information for a user. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.models.domain.gafaelfawr.GafaelfawrUser, controller.models.domain.gafaelfawr.GafaelfawrUserInfo, controller.models.domain.gafaelfawr.NotebookQuota, controller.models.domain.gafaelfawr.UserGroup, controller.models.domain.gafaelfawr.UserQuota](../../_images/inheritance-5cd2d09a65a1ef8e03a38bc06bae664e852d5c2a.png)
controller.models.domain.image Module¶
Internal models returned by image service methods.
Classes¶
|
A single spawnable image. |
|
All available spawnable images. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.models.domain.image.MenuImage, controller.models.domain.image.MenuImages](../../_images/inheritance-030b16cd7e251a95ac59b6160ff321ff3460b684.png)
controller.models.domain.kubernetes Module¶
Data types for interacting with Kubernetes.
Classes¶
Pod affinity rules. |
|
|
Protocol for Kubernetes object models. |
|
A cached image on a Kubernetes node. |
Rule for matching labels of pods or namespaces. |
|
|
Match operations for label selectors. |
Single rule for label matching. |
|
Node affinity rules. |
|
|
Match operations for node selectors. |
Individual match rule for nodes. |
|
Term to match nodes. |
|
Matching terms for nodes. |
|
|
Whether a single node is tolerated. |
Pod affinity rules. |
|
Pod matching term for pod affinity. |
|
|
Represents a change (not creation or deletion) of a pod. |
|
One of the valid phases reported in the status section of a Pod. |
Scheduling term with a weight, used to find preferred nodes. |
|
|
Possible values for the |
|
Pull policy for Docker images in Kubernetes. |
|
Possible effects of a pod toleration. |
Represents a single pod toleration rule. |
|
|
Possible operators for a toleration. |
|
Access mode for a persistent volume. |
Pod matching term for pod affinity with an associated weight. |
|
|
Possible values of the |
Class Inheritance Diagram¶
![Inheritance diagram of controller.models.domain.kubernetes.Affinity, controller.models.domain.kubernetes.KubernetesModel, controller.models.domain.kubernetes.KubernetesNodeImage, controller.models.domain.kubernetes.LabelSelector, controller.models.domain.kubernetes.LabelSelectorOperator, controller.models.domain.kubernetes.LabelSelectorRequirement, controller.models.domain.kubernetes.NodeAffinity, controller.models.domain.kubernetes.NodeSelectorOperator, controller.models.domain.kubernetes.NodeSelectorRequirement, controller.models.domain.kubernetes.NodeSelectorTerm, controller.models.domain.kubernetes.NodeSelector, controller.models.domain.kubernetes.NodeToleration, controller.models.domain.kubernetes.PodAffinity, controller.models.domain.kubernetes.PodAffinityTerm, controller.models.domain.kubernetes.PodChange, controller.models.domain.kubernetes.PodPhase, controller.models.domain.kubernetes.PreferredSchedulingTerm, controller.models.domain.kubernetes.PropagationPolicy, controller.models.domain.kubernetes.PullPolicy, controller.models.domain.kubernetes.TaintEffect, controller.models.domain.kubernetes.Toleration, controller.models.domain.kubernetes.TolerationOperator, controller.models.domain.kubernetes.VolumeAccessMode, controller.models.domain.kubernetes.WeightedPodAffinityTerm, controller.models.domain.kubernetes.WatchEventType](../../_images/inheritance-3c6aa2e3263f5ab7b4b3ff160487f102f8257400.png)
controller.models.domain.lab Module¶
Internal models related to user labs.
Classes¶
|
Type of message. |
One lab operation event for a user. |
|
|
Names for the key Kubernetes objects making up a user's lab. |
|
All of the Kubernetes objects making up a user's lab. |
|
All of the Kubernetes objects required to reconstruct lab state. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.models.domain.lab.EventType, controller.models.domain.lab.Event, controller.models.domain.lab.LabObjectNames, controller.models.domain.lab.LabObjects, controller.models.domain.lab.LabStateObjects](../../_images/inheritance-02b0412b868fc15adb5053987316c10e7216600e.png)
controller.models.domain.rspimage Module¶
Abstract data types for handling RSP images.
Classes¶
|
A tagged Rubin Science Platform image. |
|
Provides operations on a collection of |
Class Inheritance Diagram¶
![Inheritance diagram of controller.models.domain.rspimage.RSPImage, controller.models.domain.rspimage.RSPImageCollection](../../_images/inheritance-26963b9d8b20de252067d4318cd51ed96e65e40e.png)
controller.models.domain.rsptag Module¶
Abstract data types for handling RSP image tags.
Classes¶
|
A sortable image tag for a Rubin Science Platform image. |
|
Hold and perform operations on a set of |
|
The type (generally, release series) of the identified image. |
Variables¶
Implicit tag used by Docker/Kubernetes when no tag is specified. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.models.domain.rsptag.RSPImageTag, controller.models.domain.rsptag.RSPImageTagCollection, controller.models.domain.rsptag.RSPImageType](../../_images/inheritance-98dbc69b02ee0e8491bb3b7b52973f052530737b.png)
controller.models.domain.volumes Module¶
Models for mounted volumes.
Classes¶
|
Represents a volume along with its corresponding mount. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.models.domain.volumes.MountedVolume](../../_images/inheritance-63fef6bf96e7678a0e69c8a1662a413d65850a0a.png)
controller.models.index Module¶
Top-level request models for the Nublado controller.
Classes¶
Metadata returned by the external root URL of the application. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.models.index.Index](../../_images/inheritance-07608f6842a1003e3a91dfeb1c5fe7997de75176.png)
controller.models.v1.fileserver Module¶
API-visible models for user file servers.
Classes¶
Status of a user's file server. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.models.v1.fileserver.FileserverStatus](../../_images/inheritance-e7aa63dc20c84ce0dc777c9354f1d865a39758c7.png)
controller.models.v1.lab Module¶
API-visible models for user lab environments.
Classes¶
Options shared by both the input and output model for lab options. |
|
|
Supported classes of images. |
Options for the lab, specified at creation time. |
|
User-provided lab configuration options. |
|
Resource requests and limits for a lab. |
|
|
Allowable names for pod sizes. |
Specification of lab to spawn, sent by the JupyterHub spawner. |
|
Current state of the user's lab. |
|
|
Possible states the user's lab may be in. |
A Kubernetes resource request or limit. |
|
Metadata about the user who owns the lab. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.models.v1.lab.CommonLabOptions, controller.models.v1.lab.ImageClass, controller.models.v1.lab.LabOptions, controller.models.v1.lab.LabRequestOptions, controller.models.v1.lab.LabResources, controller.models.v1.lab.LabSize, controller.models.v1.lab.LabSpecification, controller.models.v1.lab.LabState, controller.models.v1.lab.LabStatus, controller.models.v1.lab.ResourceQuantity, controller.models.v1.lab.UserInfo](../../_images/inheritance-a2e2969c6cddc8d4a1b191c13b3d2772e111b64a.png)
controller.models.v1.prepuller Module¶
Models for prepuller.
Classes¶
Docker Registry from which to get images. |
|
Google Artifact Registry from which to get images. |
|
A single Docker image that is available or prepulled. |
|
Information about available images on a single Kubernetes node. |
|
An available image present on at least some Kubernetes nodes. |
|
Used to display available images. |
|
Status of the images being prepulled. |
|
Options for the prepuller. |
|
Status of the image prepuller. |
|
Images known to the Nublado controller and available for spawning. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.models.v1.prepuller.DockerSourceOptions, controller.models.v1.prepuller.GARSourceOptions, controller.models.v1.prepuller.Image, controller.models.v1.prepuller.Node, controller.models.v1.prepuller.NodeImage, controller.models.v1.prepuller.PrepulledImage, controller.models.v1.prepuller.PrepullerImageStatus, controller.models.v1.prepuller.PrepullerOptions, controller.models.v1.prepuller.PrepullerStatus, controller.models.v1.prepuller.SpawnerImages](../../_images/inheritance-47ec31bcd5a8003a1f5247c99142a6bcaca84dcf.png)
controller.services.builder.fileserver Module¶
Construction of Kubernetes objects for user fileservers.
Classes¶
|
Construct Kubernetes objects for user file servers. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.services.builder.fileserver.FileserverBuilder](../../_images/inheritance-2cc30dda48f055450ce224c91b413c502d6d6292.png)
controller.services.builder.lab Module¶
Construction of Kubernetes objects for user lab environments.
Classes¶
|
Construct Kubernetes objects for user lab environments. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.services.builder.lab.LabBuilder](../../_images/inheritance-b3aa0b89c6323226b44d6cd1bd29f1fc5fd68c0d.png)
controller.services.builder.prepuller Module¶
Construct Kubernetes objects used by the prepuller.
Classes¶
|
Construct Kubernetes objects used by the prepuller. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.services.builder.prepuller.PrepullerBuilder](../../_images/inheritance-7e856571696d47082d22d0026e9dca80be1e6bfb.png)
controller.services.builder.volumes Module¶
Construction of Kubernetes objects for volumes and volume mounts.
Classes¶
Construct Kubernetes objects for volumes and volume mounts. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.services.builder.volumes.VolumeBuilder](../../_images/inheritance-b571d47211018d88574bdf1bfce40d631158eb43.png)
controller.services.fileserver Module¶
Service to manage user fileservers.
Classes¶
|
Manage user file servers. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.services.fileserver.FileserverManager](../../_images/inheritance-3b3b21bcb68078d0fbb9d3d04aef54d7e58dd13d.png)
controller.services.image Module¶
Container image service.
Classes¶
|
Service to track the available images for Jupyter labs. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.services.image.ImageService](../../_images/inheritance-e1ac50cf4a197bb2ba167410e31455c5ce22611a.png)
controller.services.lab Module¶
Service to manage user lab environments.
Classes¶
|
Manage user labs. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.services.lab.LabManager](../../_images/inheritance-9597ee14c65249b785029313dc3212bbc45bdfa7.png)
controller.services.prepuller Module¶
Prepull images to Kubernetes nodes.
Classes¶
|
Prepull images to Kubernetes nodes. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.services.prepuller.Prepuller](../../_images/inheritance-86db5ca9828046edd9d8af9a5ab4007a8a90d994.png)
controller.services.source.base Module¶
Base class for image sources.
Classes¶
|
Base class for image sources. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.services.source.base.ImageSource](../../_images/inheritance-0ce040de223dd7f2751fbfa5c382a8691295ff1a.png)
controller.services.source.docker Module¶
Image source using a Docker Registry.
Classes¶
|
Image source using a Docker Registry. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.services.source.docker.DockerImageSource](../../_images/inheritance-acab6b4cd7df328d7f3b9fadbcfe078078d0cdda.png)
controller.services.source.gar Module¶
Image source using a Google Artifact Registry.
Classes¶
|
Image source using a Google Artifact Registry. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.services.source.gar.GARImageSource](../../_images/inheritance-0df03c157804174cd695ff5254bca62f8126eed7.png)
controller.storage.docker Module¶
Client for the Docker v2 API.
Classes¶
|
Read and write the |
|
Client to query the Docker API for image information. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.storage.docker.DockerCredentialStore, controller.storage.docker.DockerStorageClient](../../_images/inheritance-cecc8a0a71bd63ecfed7f4e7d5b43f4b40bac241.png)
controller.storage.gafaelfawr Module¶
Client for talking to Gafaelfawr.
Classes¶
|
Get user information from Gafaelfawr. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.storage.gafaelfawr.GafaelfawrStorageClient](../../_images/inheritance-b68c14cb733576442a805f1330124266c487ef75.png)
controller.storage.gar Module¶
Client for Google Artifact Registry.
Classes¶
|
Client for Google Artifact Registry. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.storage.gar.GARStorageClient](../../_images/inheritance-4b1f7bea320e8d3cbdc14989ce36dc5d90fcc4f5.png)
controller.storage.kubernetes.creator Module¶
Generic Kubernetes object storage supporting only create and read.
Provides a generic Kubernetes object management class and instantiations of that class for Kubernetes object types that only support create and read. This is sufficient for a lot of object types the lab controller manipulates. Storage classes for object types that only need those operations are provided here.
For object types that need to support other operations, see
KubernetesObjectDeleter
, which
subclasses KubernetesObjectCreator
and adds list and delete support, and its
subclasses.
Classes¶
|
Storage layer for |
|
Generic Kubernetes object storage supporting create and read. |
|
Storage layer for |
|
Storage layer for |
|
Storage layer for |
Variables¶
Type of Kubernetes object being manipulated. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.storage.kubernetes.creator.ConfigMapStorage, controller.storage.kubernetes.creator.KubernetesObjectCreator, controller.storage.kubernetes.creator.NetworkPolicyStorage, controller.storage.kubernetes.creator.ResourceQuotaStorage, controller.storage.kubernetes.creator.SecretStorage](../../_images/inheritance-e009559fb12567d857804dc65bd2aaedcb26e538.png)
controller.storage.kubernetes.custom Module¶
Storage layer for Kubernetes custom objects objects.
Classes¶
|
Storage layer for Kubernetes custom objects. |
|
Storage layer for |
Class Inheritance Diagram¶
![Inheritance diagram of controller.storage.kubernetes.custom.CustomStorage, controller.storage.kubernetes.custom.GafaelfawrIngressStorage](../../_images/inheritance-41da2faa47fdfc70cb82965cfb693a151d0f822d.png)
controller.storage.kubernetes.deleter Module¶
Generic Kubernetes object storage including list and delete.
Provides a generic Kubernetes object management class and instantiations of that class for Kubernetes object types that support list and delete (as well as create and read, provided by the superclass). Storage classes for object types that only need those operations are provided here; more complex storage classes with other operations are defined in their own modules.
Classes¶
|
Generic Kubernetes object storage supporting list and delete. |
|
Storage layer for |
|
Storage layer for |
|
Storage layer for |
Variables¶
Type of Kubernetes object being manipulated. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.storage.kubernetes.deleter.KubernetesObjectDeleter, controller.storage.kubernetes.deleter.JobStorage, controller.storage.kubernetes.deleter.PersistentVolumeClaimStorage, controller.storage.kubernetes.deleter.ServiceStorage](../../_images/inheritance-de7563ec56aba95b6d2c1f83e0543c21ca098265.png)
controller.storage.kubernetes.fileserver Module¶
Kubernetes storage layer for user fileservers.
Classes¶
|
Kubernetes storage layer for file servers. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.storage.kubernetes.fileserver.FileserverStorage](../../_images/inheritance-0876f8006a470cc310aabfeb1f424ca2cadfbdc7.png)
controller.storage.kubernetes.ingress Module¶
Storage layer for Ingress
objects.
Functions¶
|
Check whether an ingress has an IP address assigned. |
Classes¶
|
Storage layer for |
Class Inheritance Diagram¶
![Inheritance diagram of controller.storage.kubernetes.ingress.IngressStorage](../../_images/inheritance-08b74119c8ad310ff9f86f86889d7fc4e97c7258.png)
controller.storage.kubernetes.lab Module¶
Kubernetes storage layer for user labs.
Classes¶
|
Kubernetes storage layer for user labs. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.storage.kubernetes.lab.LabStorage](../../_images/inheritance-b202164147d6a4f88ba639f362c7fae6f5d90a7f.png)
controller.storage.kubernetes.namespace Module¶
Storage layer for Namespace
objects.
Classes¶
|
Storage layer for |
Class Inheritance Diagram¶
![Inheritance diagram of controller.storage.kubernetes.namespace.NamespaceStorage](../../_images/inheritance-db0ae86868b5c40d37ff92a8c856a5240edba874.png)
controller.storage.kubernetes.node Module¶
Storage layer for Kubernetes node objects.
Classes¶
|
Storage layer for Kubernetes node objects. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.storage.kubernetes.node.NodeStorage](../../_images/inheritance-2cae484aeb36d129c9fed0274dbfe641adc115c1.png)
controller.storage.kubernetes.pod Module¶
Storage layer for Pod
objects.
Classes¶
|
Storage layer for |
Class Inheritance Diagram¶
![Inheritance diagram of controller.storage.kubernetes.pod.PodStorage](../../_images/inheritance-9f69f4016e7ac09e910376341bda6e369d3119c1.png)
controller.storage.kubernetes.watcher Module¶
Watch a Kubernetes namespace or cluster for events.
Classes¶
|
Watch Kubernetes for events. |
|
Parsed event from a Kubernetes watch. |
Variables¶
Type of Kubernetes object being watched ( |
Class Inheritance Diagram¶
![Inheritance diagram of controller.storage.kubernetes.watcher.KubernetesWatcher, controller.storage.kubernetes.watcher.WatchEvent](../../_images/inheritance-2dad670cc0f6c95b79b4bd3aa4b43a8a79e07e9b.png)
controller.storage.metadata Module¶
Storage layer for pod metadata.
Classes¶
|
Storage layer for pod metadata for the running pod. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.storage.metadata.MetadataStorage](../../_images/inheritance-a6ecd9b2e37545a373dae8e06f142d840df2d4f6.png)
controller.templates Module¶
Template management.
Provides a shared Jinja template environment used whenever the Nublado controller generates responses based on templates.
Variables¶
The template manager. |
controller.timeout Module¶
Timeout class for Kubernetes operations.
Classes¶
|
Track a cumulative timeout on a series of operations. |
Class Inheritance Diagram¶
![Inheritance diagram of controller.timeout.Timeout](../../_images/inheritance-cac6ffeec92f546b18fa3b361718594faf348e6d.png)
controller.units Module¶
Unit conversions for the Nublado controller.
Functions¶
|
Convert a string representatio of memory to a number of bytes. |