Package io.fabric8.kubernetes.api.model
Class WorkloadReference
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.WorkloadReference
-
- All Implemented Interfaces:
Editable<WorkloadReferenceBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class WorkloadReference extends Object implements Editable<WorkloadReferenceBuilder>, KubernetesResource
WorkloadReference identifies the Workload object and PodGroup membership that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WorkloadReference()No args constructor for use in serializationWorkloadReference(String name, String podGroup, String podGroupReplicaKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkloadReferenceBuilderedit()Map<String,Object>getAdditionalProperties()StringgetName()Name defines the name of the Workload object this Pod belongs to.StringgetPodGroup()PodGroup is the name of the PodGroup within the Workload that this Pod belongs to.StringgetPodGroupReplicaKey()PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetName(String name)Name defines the name of the Workload object this Pod belongs to.voidsetPodGroup(String podGroup)PodGroup is the name of the PodGroup within the Workload that this Pod belongs to.voidsetPodGroupReplicaKey(String podGroupReplicaKey)PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs.WorkloadReferenceBuildertoBuilder()
-
-
-
Method Detail
-
getName
public String getName()
Name defines the name of the Workload object this Pod belongs to. Workload must be in the same namespace as the Pod. If it doesn't match any existing Workload, the Pod will remain unschedulable until a Workload object is created and observed by the kube-scheduler. It must be a DNS subdomain.
-
setName
public void setName(String name)
Name defines the name of the Workload object this Pod belongs to. Workload must be in the same namespace as the Pod. If it doesn't match any existing Workload, the Pod will remain unschedulable until a Workload object is created and observed by the kube-scheduler. It must be a DNS subdomain.
-
getPodGroup
public String getPodGroup()
PodGroup is the name of the PodGroup within the Workload that this Pod belongs to. If it doesn't match any existing PodGroup within the Workload, the Pod will remain unschedulable until the Workload object is recreated and observed by the kube-scheduler. It must be a DNS label.
-
setPodGroup
public void setPodGroup(String podGroup)
PodGroup is the name of the PodGroup within the Workload that this Pod belongs to. If it doesn't match any existing PodGroup within the Workload, the Pod will remain unschedulable until the Workload object is recreated and observed by the kube-scheduler. It must be a DNS label.
-
getPodGroupReplicaKey
public String getPodGroupReplicaKey()
PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs. It is used to distinguish pods belonging to different replicas of the same pod group. The pod group policy is applied separately to each replica. When set, it must be a DNS label.
-
setPodGroupReplicaKey
public void setPodGroupReplicaKey(String podGroupReplicaKey)
PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs. It is used to distinguish pods belonging to different replicas of the same pod group. The pod group policy is applied separately to each replica. When set, it must be a DNS label.
-
edit
public WorkloadReferenceBuilder edit()
- Specified by:
editin interfaceEditable<WorkloadReferenceBuilder>
-
toBuilder
public WorkloadReferenceBuilder toBuilder()
-
-