Class PodSchedulingContextSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1alpha2.PodSchedulingContextSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<PodSchedulingContextSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PodSchedulingContextSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<PodSchedulingContextSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
PodSchedulingContextSpec describes where resources for the Pod are needed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PodSchedulingContextSpec()No args constructor for use in serializationPodSchedulingContextSpec(List<String> potentialNodes, String selectedNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodSchedulingContextSpecBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getPotentialNodes()PotentialNodes lists nodes where the Pod might be able to run.StringgetSelectedNode()SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetPotentialNodes(List<String> potentialNodes)PotentialNodes lists nodes where the Pod might be able to run.voidsetSelectedNode(String selectedNode)SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.PodSchedulingContextSpecBuildertoBuilder()
-
-
-
Method Detail
-
getPotentialNodes
public List<String> getPotentialNodes()
PotentialNodes lists nodes where the Pod might be able to run.The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
-
setPotentialNodes
public void setPotentialNodes(List<String> potentialNodes)
PotentialNodes lists nodes where the Pod might be able to run.The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
-
getSelectedNode
public String getSelectedNode()
SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
-
setSelectedNode
public void setSelectedNode(String selectedNode)
SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
-
edit
public PodSchedulingContextSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<PodSchedulingContextSpecBuilder>
-
toBuilder
public PodSchedulingContextSpecBuilder toBuilder()
-
-