pub struct WorkloadSpec {
pub composite_pod_group_templates: Option<Vec<CompositePodGroupTemplate>>,
pub controller_ref: Option<TypedLocalObjectReference>,
pub pod_group_templates: Option<Vec<PodGroupTemplate>>,
}Expand description
WorkloadSpec defines the desired state of a Workload.
Fields§
§composite_pod_group_templates: Option<Vec<CompositePodGroupTemplate>>compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.
This field is used only when the CompositePodGroup feature gate is enabled.
controller_ref: Option<TypedLocalObjectReference>controllerRef is an optional reference to the controlling object, such as a Deployment or Job. This field is intended for use by tools like CLIs to provide a link back to the original workload definition. This field is immutable.
pod_group_templates: Option<Vec<PodGroupTemplate>>podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.
Trait Implementations§
Source§impl Clone for WorkloadSpec
impl Clone for WorkloadSpec
Source§impl Debug for WorkloadSpec
impl Debug for WorkloadSpec
Source§impl DeepMerge for WorkloadSpec
impl DeepMerge for WorkloadSpec
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other into self.