Class 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.
    • Constructor Detail

      • PodSchedulingContextSpec

        public PodSchedulingContextSpec​(java.util.List<java.lang.String> potentialNodes,
                                        java.lang.String selectedNode)
      • PodSchedulingContextSpec

        public PodSchedulingContextSpec()
    • Method Detail

      • 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 class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object