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.
- Built
Workload - A workload built from its signed release.
- Configurable
- Names config statements may set.
- Function
Settings - Settings of a serverless function that change what runs.
- Local
Values - Values the enforcer reads or computes itself, never from the control plane.
- Mount
- A host bind mount.
- Release
Body - What one release lets run on one platform.
- Requested
Secret - A secret delivery the control plane asks for.
- Runtime
- Runtime privileges. The defaults are the unprivileged ones.
- Secret
Binding - A secret the workload may receive. The value is not signed; the name and where it lands are.
- Security
- Hardened execution settings.
- Setup
Template - One setup template as the release rendered it.
- Workload
- One workload, exactly as it may run.
- Workload
Request - 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§
- Workload
Kind - 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
namefrom a verified release, applying config values from a verifiedconfig/v1, the values the enforcer computed itself, and the values the control plane provides. - is_
loader_ env - Whether
nameis a loader variable. - is_
pinned_ image - Whether
imageis<repository>@sha256:<64 hex>. - is_
sha256_ digest - Whether
digestissha256:<64 lowercase hex>. - parse_
cpu_ millis - CPU quantity in millicores:
2,0.5or500m. - parse_
memory_ bytes - Memory quantity in bytes: a number with an optional
Ki/Mi/Gi/TiorK/M/G/Tsuffix.