Package io.fabric8.kubernetes.api.model
Class NodeStatus
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.NodeStatus
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<NodeStatusBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NodeStatus extends Object implements io.fabric8.kubernetes.api.builder.Editable<NodeStatusBuilder>, KubernetesResource
NodeStatus is information about the current status of a node.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeStatus()
No args constructor for use in serializationNodeStatus(List<NodeAddress> addresses, Map<String,Quantity> allocatable, Map<String,Quantity> capacity, List<NodeCondition> conditions, NodeConfigStatus config, NodeDaemonEndpoints daemonEndpoints, NodeFeatures features, List<ContainerImage> images, NodeSystemInfo nodeInfo, String phase, List<NodeRuntimeHandler> runtimeHandlers, List<AttachedVolume> volumesAttached, List<String> volumesInUse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeStatusBuilder
edit()
Map<String,Object>
getAdditionalProperties()
List<NodeAddress>
getAddresses()
List of addresses reachable to the node.Map<String,Quantity>
getAllocatable()
Allocatable represents the resources of a node that are available for scheduling.Map<String,Quantity>
getCapacity()
Capacity represents the total resources of a node.List<NodeCondition>
getConditions()
Conditions is an array of current observed node conditions.NodeConfigStatus
getConfig()
NodeStatus is information about the current status of a node.NodeDaemonEndpoints
getDaemonEndpoints()
NodeStatus is information about the current status of a node.NodeFeatures
getFeatures()
NodeStatus is information about the current status of a node.List<ContainerImage>
getImages()
List of container images on this nodeNodeSystemInfo
getNodeInfo()
NodeStatus is information about the current status of a node.String
getPhase()
NodePhase is the recently observed lifecycle phase of the node.List<NodeRuntimeHandler>
getRuntimeHandlers()
The available runtime handlers.List<AttachedVolume>
getVolumesAttached()
List of volumes that are attached to the node.List<String>
getVolumesInUse()
List of attachable volumes in use (mounted) by the node.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setAddresses(List<NodeAddress> addresses)
List of addresses reachable to the node.void
setAllocatable(Map<String,Quantity> allocatable)
Allocatable represents the resources of a node that are available for scheduling.void
setCapacity(Map<String,Quantity> capacity)
Capacity represents the total resources of a node.void
setConditions(List<NodeCondition> conditions)
Conditions is an array of current observed node conditions.void
setConfig(NodeConfigStatus config)
NodeStatus is information about the current status of a node.void
setDaemonEndpoints(NodeDaemonEndpoints daemonEndpoints)
NodeStatus is information about the current status of a node.void
setFeatures(NodeFeatures features)
NodeStatus is information about the current status of a node.void
setImages(List<ContainerImage> images)
List of container images on this nodevoid
setNodeInfo(NodeSystemInfo nodeInfo)
NodeStatus is information about the current status of a node.void
setPhase(String phase)
NodePhase is the recently observed lifecycle phase of the node.void
setRuntimeHandlers(List<NodeRuntimeHandler> runtimeHandlers)
The available runtime handlers.void
setVolumesAttached(List<AttachedVolume> volumesAttached)
List of volumes that are attached to the node.void
setVolumesInUse(List<String> volumesInUse)
List of attachable volumes in use (mounted) by the node.NodeStatusBuilder
toBuilder()
-
-
-
Constructor Detail
-
NodeStatus
public NodeStatus()
No args constructor for use in serialization
-
NodeStatus
public NodeStatus(List<NodeAddress> addresses, Map<String,Quantity> allocatable, Map<String,Quantity> capacity, List<NodeCondition> conditions, NodeConfigStatus config, NodeDaemonEndpoints daemonEndpoints, NodeFeatures features, List<ContainerImage> images, NodeSystemInfo nodeInfo, String phase, List<NodeRuntimeHandler> runtimeHandlers, List<AttachedVolume> volumesAttached, List<String> volumesInUse)
-
-
Method Detail
-
getAddresses
public List<NodeAddress> getAddresses()
List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#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).
-
setAddresses
public void setAddresses(List<NodeAddress> addresses)
List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#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).
-
getAllocatable
public Map<String,Quantity> getAllocatable()
Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.
-
setAllocatable
public void setAllocatable(Map<String,Quantity> allocatable)
Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.
-
getCapacity
public Map<String,Quantity> getCapacity()
Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity
-
setCapacity
public void setCapacity(Map<String,Quantity> capacity)
Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity
-
getConditions
public List<NodeCondition> getConditions()
Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition
-
setConditions
public void setConditions(List<NodeCondition> conditions)
Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition
-
getConfig
public NodeConfigStatus getConfig()
NodeStatus is information about the current status of a node.
-
setConfig
public void setConfig(NodeConfigStatus config)
NodeStatus is information about the current status of a node.
-
getDaemonEndpoints
public NodeDaemonEndpoints getDaemonEndpoints()
NodeStatus is information about the current status of a node.
-
setDaemonEndpoints
public void setDaemonEndpoints(NodeDaemonEndpoints daemonEndpoints)
NodeStatus is information about the current status of a node.
-
getFeatures
public NodeFeatures getFeatures()
NodeStatus is information about the current status of a node.
-
setFeatures
public void setFeatures(NodeFeatures features)
NodeStatus is information about the current status of a node.
-
getImages
public List<ContainerImage> getImages()
List of container images on this node
-
setImages
public void setImages(List<ContainerImage> images)
List of container images on this node
-
getNodeInfo
public NodeSystemInfo getNodeInfo()
NodeStatus is information about the current status of a node.
-
setNodeInfo
public void setNodeInfo(NodeSystemInfo nodeInfo)
NodeStatus is information about the current status of a node.
-
getPhase
public String 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.
-
setPhase
public void setPhase(String phase)
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.
-
getRuntimeHandlers
public List<NodeRuntimeHandler> getRuntimeHandlers()
The available runtime handlers.
-
setRuntimeHandlers
public void setRuntimeHandlers(List<NodeRuntimeHandler> runtimeHandlers)
The available runtime handlers.
-
getVolumesAttached
public List<AttachedVolume> getVolumesAttached()
List of volumes that are attached to the node.
-
setVolumesAttached
public void setVolumesAttached(List<AttachedVolume> volumesAttached)
List of volumes that are attached to the node.
-
getVolumesInUse
public List<String> getVolumesInUse()
List of attachable volumes in use (mounted) by the node.
-
setVolumesInUse
public void setVolumesInUse(List<String> volumesInUse)
List of attachable volumes in use (mounted) by the node.
-
edit
public NodeStatusBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<NodeStatusBuilder>
-
toBuilder
public NodeStatusBuilder toBuilder()
-
-