pub struct Workload {Show 15 fields
pub name: String,
pub kind: WorkloadKind,
pub image: String,
pub command: Option<Vec<String>>,
pub env: BTreeMap<String, String>,
pub provided_env: Vec<String>,
pub bindings: BTreeMap<String, String>,
pub configurable_env: Vec<String>,
pub deployer_env: BTreeMap<String, String>,
pub secrets: Vec<SecretBinding>,
pub runtime: Runtime,
pub volume_mount_path: Option<String>,
pub identity: Option<String>,
pub bounds: Bounds,
pub function: Option<FunctionSettings>,
}Expand description
One workload, exactly as it may run.
Fields§
§name: StringWorkload name, unique in the release.
kind: WorkloadKindWhat kind of compute it is.
image: String<repository>@sha256:<hex>.
command: Option<Vec<String>>Command overriding the image’s, if any.
env: BTreeMap<String, String>Fixed environment values.
provided_env: Vec<String>Exact environment names whose values the control plane provides.
bindings: BTreeMap<String, String>Resources the workload is bound to: resource id to resource type. The enforcer computes each binding’s value from its own install, so the control plane can’t point a binding at another resource.
configurable_env: Vec<String>Environment names a config statement may set on this workload.
deployer_env: BTreeMap<String, String>Environment names whose values come from deployer inputs, by input id. The enforcer reads the values from the customer’s own store; the control plane never supplies them.
secrets: Vec<SecretBinding>Secrets the workload may receive, by name.
runtime: RuntimeRuntime privileges and mounts.
volume_mount_path: Option<String>Where the workload’s persistent volume is mounted, if it has one.
identity: Option<String>Permission profile the workload runs as, if any.
bounds: BoundsUpper bounds the control plane may scale within.
function: Option<FunctionSettings>Function settings, for function workloads.