Class PodSchedulingContextSpec
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.resource.v1alpha2.PodSchedulingContextSpec
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class PodSchedulingContextSpec extends java.lang.Object implements com.marcnuri.yakc.model.Model
PodSchedulingContextSpec describes where resources for the Pod are needed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PodSchedulingContextSpec.Builder
-
Constructor Summary
Constructors Constructor Description PodSchedulingContextSpec()
PodSchedulingContextSpec(java.util.List<java.lang.String> potentialNodes, java.lang.String selectedNode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PodSchedulingContextSpec.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.util.List<java.lang.String>
getPotentialNodes()
PotentialNodes lists nodes where the Pod might be able to run.java.lang.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.int
hashCode()
void
setPotentialNodes(java.util.List<java.lang.String> potentialNodes)
PotentialNodes lists nodes where the Pod might be able to run.void
setSelectedNode(java.lang.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.PodSchedulingContextSpec.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static PodSchedulingContextSpec.Builder builder()
-
toBuilder
public PodSchedulingContextSpec.Builder toBuilder()
-
getPotentialNodes
public java.util.List<java.lang.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.
-
getSelectedNode
public java.lang.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.
-
setPotentialNodes
public void setPotentialNodes(java.util.List<java.lang.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.
-
setSelectedNode
public void setSelectedNode(java.lang.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.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-