Class WorkloadSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.scheduling.v1beta1.WorkloadSpec
-
- All Implemented Interfaces:
Editable<WorkloadSpecBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class WorkloadSpec extends Object implements Editable<WorkloadSpecBuilder>, KubernetesResource
WorkloadSpec defines the desired state of a Workload.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WorkloadSpec()No args constructor for use in serializationWorkloadSpec(List<CompositePodGroupTemplate> compositePodGroupTemplates, TypedLocalObjectReference controllerRef, List<PodGroupTemplate> podGroupTemplates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkloadSpecBuilderedit()Map<String,Object>getAdditionalProperties()List<CompositePodGroupTemplate>getCompositePodGroupTemplates()compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload.TypedLocalObjectReferencegetControllerRef()WorkloadSpec defines the desired state of a Workload.List<PodGroupTemplate>getPodGroupTemplates()podGroupTemplates is the list of templates that make up the Workload.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetCompositePodGroupTemplates(List<CompositePodGroupTemplate> compositePodGroupTemplates)compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload.voidsetControllerRef(TypedLocalObjectReference controllerRef)WorkloadSpec defines the desired state of a Workload.voidsetPodGroupTemplates(List<PodGroupTemplate> podGroupTemplates)podGroupTemplates is the list of templates that make up the Workload.WorkloadSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
WorkloadSpec
public WorkloadSpec()
No args constructor for use in serialization
-
WorkloadSpec
public WorkloadSpec(List<CompositePodGroupTemplate> compositePodGroupTemplates, TypedLocalObjectReference controllerRef, List<PodGroupTemplate> podGroupTemplates)
-
-
Method Detail
-
getCompositePodGroupTemplates
public List<CompositePodGroupTemplate> getCompositePodGroupTemplates()
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.
-
setCompositePodGroupTemplates
public void setCompositePodGroupTemplates(List<CompositePodGroupTemplate> compositePodGroupTemplates)
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.
-
getControllerRef
public TypedLocalObjectReference getControllerRef()
WorkloadSpec defines the desired state of a Workload.
-
setControllerRef
public void setControllerRef(TypedLocalObjectReference controllerRef)
WorkloadSpec defines the desired state of a Workload.
-
getPodGroupTemplates
public List<PodGroupTemplate> getPodGroupTemplates()
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.
-
setPodGroupTemplates
public void setPodGroupTemplates(List<PodGroupTemplate> podGroupTemplates)
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.
-
edit
public WorkloadSpecBuilder edit()
- Specified by:
editin interfaceEditable<WorkloadSpecBuilder>
-
toBuilder
public WorkloadSpecBuilder toBuilder()
-
-