Package net.stickycode.kuuty.model.v18
Class IoK8sApiNodeV1beta1Scheduling
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiNodeV1beta1Scheduling
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiNodeV1beta1Scheduling extends Object
Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_NODE_SELECTORstatic StringJSON_PROPERTY_TOLERATIONS
-
Constructor Summary
Constructors Constructor Description IoK8sApiNodeV1beta1Scheduling()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IoK8sApiNodeV1beta1SchedulingaddTolerationsItem(IoK8sApiCoreV1Toleration tolerationsItem)booleanequals(Object o)Map<String,String>getNodeSelector()nodeSelector lists labels that must be present on nodes that support this RuntimeClass.List<IoK8sApiCoreV1Toleration>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.inthashCode()IoK8sApiNodeV1beta1SchedulingnodeSelector(Map<String,String> nodeSelector)IoK8sApiNodeV1beta1SchedulingputNodeSelectorItem(String key, String nodeSelectorItem)voidsetNodeSelector(Map<String,String> nodeSelector)voidsetTolerations(List<IoK8sApiCoreV1Toleration> tolerations)IoK8sApiNodeV1beta1Schedulingtolerations(List<IoK8sApiCoreV1Toleration> tolerations)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_NODE_SELECTOR
public static final String JSON_PROPERTY_NODE_SELECTOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOLERATIONS
public static final String JSON_PROPERTY_TOLERATIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
nodeSelector
public IoK8sApiNodeV1beta1Scheduling nodeSelector(Map<String,String> nodeSelector)
-
putNodeSelectorItem
public IoK8sApiNodeV1beta1Scheduling putNodeSelectorItem(String key, String nodeSelectorItem)
-
getNodeSelector
@Nullable public Map<String,String> 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:
- nodeSelector
-
tolerations
public IoK8sApiNodeV1beta1Scheduling tolerations(List<IoK8sApiCoreV1Toleration> tolerations)
-
addTolerationsItem
public IoK8sApiNodeV1beta1Scheduling addTolerationsItem(IoK8sApiCoreV1Toleration tolerationsItem)
-
getTolerations
@Nullable public List<IoK8sApiCoreV1Toleration> 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:
- tolerations
-
setTolerations
public void setTolerations(List<IoK8sApiCoreV1Toleration> tolerations)
-
-