Class V1Scheduling
java.lang.Object
io.kubernetes.client.openapi.models.V1Scheduling
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class V1Scheduling
extends Object
Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTolerationsItem
(V1Toleration tolerationsItem) boolean
static V1Scheduling
Create an instance of V1Scheduling given an JSON stringnodeSelector lists labels that must be present on nodes that support this RuntimeClass.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, String> nodeSelector) putNodeSelectorItem
(String key, String nodeSelectorItem) void
setNodeSelector
(Map<String, String> nodeSelector) void
setTolerations
(List<V1Toleration> tolerations) toJson()
Convert an instance of V1Scheduling to an JSON stringtolerations
(List<V1Toleration> tolerations) toString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_NODE_SELECTOR
- See Also:
-
SERIALIZED_NAME_TOLERATIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1Scheduling
public V1Scheduling()
-
-
Method Details
-
nodeSelector
-
putNodeSelectorItem
-
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
-
setNodeSelector
-
tolerations
-
addTolerationsItem
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1Scheduling
-
fromJson
Create an instance of V1Scheduling given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1Scheduling
- Throws:
IOException
- if the JSON string is invalid with respect to V1Scheduling
-
toJson
Convert an instance of V1Scheduling to an JSON string- Returns:
- JSON string
-