pub struct PoolSpec {Show 16 fields
pub pool_id: String,
pub tenant_id: String,
pub flake_ref: String,
pub profile: String,
pub role: Role,
pub instance_resources: InstanceResources,
pub desired_counts: DesiredCounts,
pub runtime_policy: RuntimePolicy,
pub metadata: PoolMetadata,
pub seccomp_policy: String,
pub snapshot_compression: String,
pub metadata_enabled: bool,
pub pinned: bool,
pub critical: bool,
pub secret_scopes: Vec<SecretScope>,
pub template_id: String,
}Expand description
A WorkerPool defines a homogeneous group of instances within a tenant. Has desired counts but NO runtime state.
Fields§
§pool_id: String§tenant_id: String§flake_ref: String§profile: StringGuest profile name. Built-in: “minimal”, “python”. Users can define custom profiles in their own flake.
role: RoleRole for all instances in this pool.
instance_resources: InstanceResources§desired_counts: DesiredCounts§runtime_policy: RuntimePolicyMinimum runtime policy for this pool’s instances.
metadata: PoolMetadataOptional metadata for capability tagging and categorization.
seccomp_policy: String“baseline” | “strict”
snapshot_compression: String“none” | “lz4” | “zstd”
metadata_enabled: bool§pinned: boolIf true, reconcile won’t auto-sleep this pool’s instances.
critical: boolIf true, reconcile won’t touch this pool at all.
secret_scopes: Vec<SecretScope>Per-integration secret scoping. When non-empty, secrets are split into per-integration directories on the secrets drive.
template_id: StringOptional template reference for shared base image.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PoolSpec
impl<'de> Deserialize<'de> for PoolSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PoolSpec
impl RefUnwindSafe for PoolSpec
impl Send for PoolSpec
impl Sync for PoolSpec
impl Unpin for PoolSpec
impl UnsafeUnpin for PoolSpec
impl UnwindSafe for PoolSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more