Skip to main content

Module release

Module release 

Source
Expand description

release/v2: what a release may run, workload by workload, and how an enforcer builds a workload from it.

The control plane still decides placement, replica counts within signed bounds, and the values of the few environment variables the release names exactly as provided. Everything that decides which code runs, how it is loaded and which resources it reaches comes from the signed body or from the enforcer itself: the image digest, the command, fixed environment values, runtime privileges, mounts, identity, and binding values the enforcer computes from its own install.

Structs§

Bounds
Upper bounds on what the control plane may request.
BuiltWorkload
A workload built from its signed release.
Configurable
Names config statements may set.
FunctionSettings
Settings of a serverless function that change what runs.
LocalValues
Values the enforcer reads or computes itself, never from the control plane.
Mount
A host bind mount.
ReleaseBody
What one release lets run on one platform.
RequestedSecret
A secret delivery the control plane asks for.
Runtime
Runtime privileges. The defaults are the unprivileged ones.
SecretBinding
A secret the workload may receive. The value is not signed; the name and where it lands are.
Security
Hardened execution settings.
SetupTemplate
One setup template as the release rendered it.
Workload
One workload, exactly as it may run.
WorkloadRequest
What the control plane supplies when it asks an enforcer to run one replica of a workload. Nothing here can change the code that runs.

Enums§

WorkloadKind
What kind of compute a workload is.

Constants§

COMPONENTS
Components whose builds a release pins. An enforcer runs only a build whose digest the release names. The verifier isn’t one: setup pins it.
LOADER_ENV
Environment variables that change how a runtime loads code. They can only come from the release itself: no control-plane value, config statement or provided-name pattern may set them.
LOADER_ENV_PREFIXES
Families of loader variables, by prefix: the dynamic linkers’ and exported shell functions.
RUNTIME_SEND_OTLP
Whether the workload’s runtime ships telemetry: a switch the deployment sets, which can’t say where the telemetry goes.
SETUP_TEMPLATES
Setup templates a release can carry digests of.

Functions§

build_workload
Build workload name from a verified release, applying config values from a verified config/v1, the values the enforcer computed itself, and the values the control plane provides.
is_loader_env
Whether name is a loader variable.
is_pinned_image
Whether image is <repository>@sha256:<64 hex>.
is_sha256_digest
Whether digest is sha256:<64 lowercase hex>.
parse_cpu_millis
CPU quantity in millicores: 2, 0.5 or 500m.
parse_memory_bytes
Memory quantity in bytes: a number with an optional Ki/Mi/Gi/Ti or K/M/G/T suffix.