Class V1NodeStatus
java.lang.Object
io.kubernetes.client.openapi.models.V1NodeStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1NodeStatus
extends Object
NodeStatus is information about the current status of a node.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAddressesItem
(V1NodeAddress addressesItem) addConditionsItem
(V1NodeCondition conditionsItem) addImagesItem
(V1ContainerImage imagesItem) addresses
(List<V1NodeAddress> addresses) addRuntimeHandlersItem
(V1NodeRuntimeHandler runtimeHandlersItem) addVolumesAttachedItem
(V1AttachedVolume volumesAttachedItem) addVolumesInUseItem
(String volumesInUseItem) allocatable
(Map<String, Quantity> allocatable) conditions
(List<V1NodeCondition> conditions) config
(V1NodeConfigStatus config) daemonEndpoints
(V1NodeDaemonEndpoints daemonEndpoints) boolean
features
(V1NodeFeatures features) static V1NodeStatus
Create an instance of V1NodeStatus given an JSON stringList of addresses reachable to the node.Allocatable represents the resources of a node that are available for scheduling.Capacity represents the total resources of a node.Conditions is an array of current observed node conditions.Get configGet daemonEndpointsGet featuresList of container images on this nodeGet nodeInfogetPhase()
NodePhase is the recently observed lifecycle phase of the node.The available runtime handlers.List of volumes that are attached to the node.List of attachable volumes in use (mounted) by the node.int
hashCode()
images
(List<V1ContainerImage> images) nodeInfo
(V1NodeSystemInfo nodeInfo) putAllocatableItem
(String key, Quantity allocatableItem) putCapacityItem
(String key, Quantity capacityItem) runtimeHandlers
(List<V1NodeRuntimeHandler> runtimeHandlers) void
setAddresses
(List<V1NodeAddress> addresses) void
setAllocatable
(Map<String, Quantity> allocatable) void
setCapacity
(Map<String, Quantity> capacity) void
setConditions
(List<V1NodeCondition> conditions) void
setConfig
(V1NodeConfigStatus config) void
setDaemonEndpoints
(V1NodeDaemonEndpoints daemonEndpoints) void
setFeatures
(V1NodeFeatures features) void
setImages
(List<V1ContainerImage> images) void
setNodeInfo
(V1NodeSystemInfo nodeInfo) void
void
setRuntimeHandlers
(List<V1NodeRuntimeHandler> runtimeHandlers) void
setVolumesAttached
(List<V1AttachedVolume> volumesAttached) void
setVolumesInUse
(List<String> volumesInUse) toJson()
Convert an instance of V1NodeStatus to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundvolumesAttached
(List<V1AttachedVolume> volumesAttached) volumesInUse
(List<String> volumesInUse)
-
Field Details
-
SERIALIZED_NAME_ADDRESSES
- See Also:
-
SERIALIZED_NAME_ALLOCATABLE
- See Also:
-
SERIALIZED_NAME_CAPACITY
- See Also:
-
SERIALIZED_NAME_CONDITIONS
- See Also:
-
SERIALIZED_NAME_CONFIG
- See Also:
-
SERIALIZED_NAME_DAEMON_ENDPOINTS
- See Also:
-
SERIALIZED_NAME_FEATURES
- See Also:
-
SERIALIZED_NAME_IMAGES
- See Also:
-
SERIALIZED_NAME_NODE_INFO
- See Also:
-
SERIALIZED_NAME_PHASE
- See Also:
-
SERIALIZED_NAME_RUNTIME_HANDLERS
- See Also:
-
SERIALIZED_NAME_VOLUMES_ATTACHED
- See Also:
-
SERIALIZED_NAME_VOLUMES_IN_USE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1NodeStatus
public V1NodeStatus()
-
-
Method Details
-
addresses
-
addAddressesItem
-
getAddresses
List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).- Returns:
- addresses
-
setAddresses
-
allocatable
-
putAllocatableItem
-
getAllocatable
Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.- Returns:
- allocatable
-
setAllocatable
-
capacity
-
putCapacityItem
-
getCapacity
Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity- Returns:
- capacity
-
setCapacity
-
conditions
-
addConditionsItem
-
getConditions
Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition- Returns:
- conditions
-
setConditions
-
config
-
getConfig
Get config- Returns:
- config
-
setConfig
-
daemonEndpoints
-
getDaemonEndpoints
Get daemonEndpoints- Returns:
- daemonEndpoints
-
setDaemonEndpoints
-
features
-
getFeatures
Get features- Returns:
- features
-
setFeatures
-
images
-
addImagesItem
-
getImages
List of container images on this node- Returns:
- images
-
setImages
-
nodeInfo
-
getNodeInfo
Get nodeInfo- Returns:
- nodeInfo
-
setNodeInfo
-
phase
-
getPhase
NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.- Returns:
- phase
-
setPhase
-
runtimeHandlers
-
addRuntimeHandlersItem
-
getRuntimeHandlers
The available runtime handlers.- Returns:
- runtimeHandlers
-
setRuntimeHandlers
-
volumesAttached
-
addVolumesAttachedItem
-
getVolumesAttached
List of volumes that are attached to the node.- Returns:
- volumesAttached
-
setVolumesAttached
-
volumesInUse
-
addVolumesInUseItem
-
getVolumesInUse
List of attachable volumes in use (mounted) by the node.- Returns:
- volumesInUse
-
setVolumesInUse
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1NodeStatus
-
fromJson
Create an instance of V1NodeStatus given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1NodeStatus
- Throws:
IOException
- if the JSON string is invalid with respect to V1NodeStatus
-
toJson
Convert an instance of V1NodeStatus to an JSON string- Returns:
- JSON string
-