Class V1Scheduling
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1Scheduling
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1Scheduling
extends Object
Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddtolerationsItem
(V1Toleration tolerationsItem) Add an item to the tolerations property in a chainable fashion.boolean
nodeSelector lists labels that must be present on nodes that support this RuntimeClass.List<@Valid V1Toleration>
tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.int
hashCode()
nodeSelector
(Map<String, @NotNull String> nodeSelector) Set nodeSelector in a chainable fashion.putnodeSelectorItem
(String key, String nodeSelectorItem) Set the value for the key for the nodeSelector map property in a chainable fashion.void
setNodeSelector
(Map<String, @NotNull String> nodeSelector) Set the nodeSelector property valuevoid
setTolerations
(List<@Valid V1Toleration> tolerations) Set the tolerations property valuetolerations
(List<@Valid V1Toleration> tolerations) Set tolerations in a chainable fashion.toString()
-
Field Details
-
JSON_PROPERTY_NODE_SELECTOR
- See Also:
-
JSON_PROPERTY_TOLERATIONS
- See Also:
-
-
Constructor Details
-
V1Scheduling
public V1Scheduling()
-
-
Method Details
-
getNodeSelector
nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.- Returns:
- the nodeSelector property value
-
setNodeSelector
Set the nodeSelector property value- Parameters:
nodeSelector
- property value to set
-
nodeSelector
Set nodeSelector in a chainable fashion.- Returns:
- The same instance of V1Scheduling for chaining.
-
putnodeSelectorItem
Set the value for the key for the nodeSelector map property in a chainable fashion.- Returns:
- The same instance of V1Scheduling for chaining.
-
getTolerations
tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.- Returns:
- the tolerations property value
-
setTolerations
Set the tolerations property value- Parameters:
tolerations
- property value to set
-
tolerations
Set tolerations in a chainable fashion.- Returns:
- The same instance of V1Scheduling for chaining.
-
addtolerationsItem
Add an item to the tolerations property in a chainable fashion.- Returns:
- The same instance of V1Scheduling for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-