Class V1NodeAffinity

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1NodeAffinity

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1NodeAffinity extends Object
Node affinity is a group of node affinity scheduling rules.
  • Field Details

    • JSON_PROPERTY_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION

      public static final String JSON_PROPERTY_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION
      See Also:
    • JSON_PROPERTY_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION

      public static final String JSON_PROPERTY_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION
      See Also:
  • Constructor Details

    • V1NodeAffinity

      public V1NodeAffinity()
  • Method Details

    • getPreferredDuringSchedulingIgnoredDuringExecution

      public List<@Valid V1PreferredSchedulingTerm> getPreferredDuringSchedulingIgnoredDuringExecution()
      The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.
      Returns:
      the preferredDuringSchedulingIgnoredDuringExecution property value
    • setPreferredDuringSchedulingIgnoredDuringExecution

      public void setPreferredDuringSchedulingIgnoredDuringExecution(List<@Valid V1PreferredSchedulingTerm> preferredDuringSchedulingIgnoredDuringExecution)
      Set the preferredDuringSchedulingIgnoredDuringExecution property value
    • preferredDuringSchedulingIgnoredDuringExecution

      public V1NodeAffinity preferredDuringSchedulingIgnoredDuringExecution(List<@Valid V1PreferredSchedulingTerm> preferredDuringSchedulingIgnoredDuringExecution)
      Set preferredDuringSchedulingIgnoredDuringExecution in a chainable fashion.
      Returns:
      The same instance of V1NodeAffinity for chaining.
    • addpreferredDuringSchedulingIgnoredDuringExecutionItem

      public V1NodeAffinity addpreferredDuringSchedulingIgnoredDuringExecutionItem(V1PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecutionItem)
      Add an item to the preferredDuringSchedulingIgnoredDuringExecution property in a chainable fashion.
      Returns:
      The same instance of V1NodeAffinity for chaining.
    • getRequiredDuringSchedulingIgnoredDuringExecution

      public V1NodeSelector getRequiredDuringSchedulingIgnoredDuringExecution()
      Returns:
      the requiredDuringSchedulingIgnoredDuringExecution property value
    • setRequiredDuringSchedulingIgnoredDuringExecution

      public void setRequiredDuringSchedulingIgnoredDuringExecution(V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution)
      Set the requiredDuringSchedulingIgnoredDuringExecution property value
    • requiredDuringSchedulingIgnoredDuringExecution

      public V1NodeAffinity requiredDuringSchedulingIgnoredDuringExecution(V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution)
      Set requiredDuringSchedulingIgnoredDuringExecution in a chainable fashion.
      Returns:
      The same instance of V1NodeAffinity for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object