pub struct DeploymentSpec {Show 13 fields
pub name: String,
pub version: String,
pub image: Option<String>,
pub command: Vec<String>,
pub env: BTreeMap<String, String>,
pub secrets: Vec<SecretRef>,
pub max_active_runs: u32,
pub min_replicas: u32,
pub max_replicas: u32,
pub grace_secs: u64,
pub resources: Resources,
pub workflow_fingerprint: String,
pub provider_settings: BTreeMap<String, Value>,
}Expand description
What graphrt deploy asks a DeployDriver to create or update.
Fields§
§name: StringDeployment name.
version: StringNew immutable version.
image: Option<String>Container image; None for local-process (it runs command).
command: Vec<String>Command and arguments of the agent (graphrt serve --trust-gateway ...).
env: BTreeMap<String, String>Plain environment (never secrets).
secrets: Vec<SecretRef>Secrets as references.
max_active_runs: u32Concurrent runs per replica (Cloud Run containerConcurrency).
min_replicas: u32Replicas kept warm (0 = scale to zero).
max_replicas: u32Upper bound of the scaler and of the max_replicas quota.
grace_secs: u64Grace between SIGTERM and SIGKILL the driver sets on the platform.
resources: ResourcesResources per replica.
workflow_fingerprint: StringWorkflow fingerprint, so the gateway can route resumes to the version a paused run was snapshotted on.
provider_settings: BTreeMap<String, Value>Provider-specific settings (region, namespace, VPC…), validated by the driver. Provider endpoints never come from here (SSRF, plan §6).