Class NodeStatus
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.NodeStatus
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class NodeStatus extends java.lang.Object implements com.marcnuri.yakc.model.Model
NodeStatus is information about the current status of a node.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NodeStatus.Builder
-
Constructor Summary
Constructors Constructor Description NodeStatus()
NodeStatus(java.util.List<NodeAddress> addresses, java.util.Map<java.lang.String,java.lang.String> allocatable, java.util.Map<java.lang.String,java.lang.String> capacity, java.util.List<NodeCondition> conditions, NodeConfigStatus config, NodeDaemonEndpoints daemonEndpoints, java.util.List<ContainerImage> images, NodeSystemInfo nodeInfo, java.lang.String phase, java.util.List<AttachedVolume> volumesAttached, java.util.List<java.lang.String> volumesInUse)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NodeStatus.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.util.List<NodeAddress>
getAddresses()
List of addresses reachable to the node.java.util.Map<java.lang.String,java.lang.String>
getAllocatable()
Allocatable represents the resources of a node that are available for scheduling.java.util.Map<java.lang.String,java.lang.String>
getCapacity()
Capacity represents the total resources of a node.java.util.List<NodeCondition>
getConditions()
Conditions is an array of current observed node conditions.NodeConfigStatus
getConfig()
NodeDaemonEndpoints
getDaemonEndpoints()
java.util.List<ContainerImage>
getImages()
List of container images on this nodeNodeSystemInfo
getNodeInfo()
java.lang.String
getPhase()
NodePhase is the recently observed lifecycle phase of the node.java.util.List<AttachedVolume>
getVolumesAttached()
List of volumes that are attached to the node.java.util.List<java.lang.String>
getVolumesInUse()
List of attachable volumes in use (mounted) by the node.int
hashCode()
void
setAddresses(java.util.List<NodeAddress> addresses)
List of addresses reachable to the node.void
setAllocatable(java.util.Map<java.lang.String,java.lang.String> allocatable)
Allocatable represents the resources of a node that are available for scheduling.void
setCapacity(java.util.Map<java.lang.String,java.lang.String> capacity)
Capacity represents the total resources of a node.void
setConditions(java.util.List<NodeCondition> conditions)
Conditions is an array of current observed node conditions.void
setConfig(NodeConfigStatus config)
void
setDaemonEndpoints(NodeDaemonEndpoints daemonEndpoints)
void
setImages(java.util.List<ContainerImage> images)
List of container images on this nodevoid
setNodeInfo(NodeSystemInfo nodeInfo)
void
setPhase(java.lang.String phase)
NodePhase is the recently observed lifecycle phase of the node.void
setVolumesAttached(java.util.List<AttachedVolume> volumesAttached)
List of volumes that are attached to the node.void
setVolumesInUse(java.util.List<java.lang.String> volumesInUse)
List of attachable volumes in use (mounted) by the node.NodeStatus.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
NodeStatus
public NodeStatus(java.util.List<NodeAddress> addresses, java.util.Map<java.lang.String,java.lang.String> allocatable, java.util.Map<java.lang.String,java.lang.String> capacity, java.util.List<NodeCondition> conditions, NodeConfigStatus config, NodeDaemonEndpoints daemonEndpoints, java.util.List<ContainerImage> images, NodeSystemInfo nodeInfo, java.lang.String phase, java.util.List<AttachedVolume> volumesAttached, java.util.List<java.lang.String> volumesInUse)
-
NodeStatus
public NodeStatus()
-
-
Method Detail
-
builder
public static NodeStatus.Builder builder()
-
toBuilder
public NodeStatus.Builder toBuilder()
-
getAddresses
public java.util.List<NodeAddress> 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).
-
getAllocatable
public java.util.Map<java.lang.String,java.lang.String> getAllocatable()
Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.
-
getCapacity
public java.util.Map<java.lang.String,java.lang.String> getCapacity()
Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
-
getConditions
public java.util.List<NodeCondition> getConditions()
Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
-
getConfig
public NodeConfigStatus getConfig()
-
getDaemonEndpoints
public NodeDaemonEndpoints getDaemonEndpoints()
-
getImages
public java.util.List<ContainerImage> getImages()
List of container images on this node
-
getNodeInfo
public NodeSystemInfo getNodeInfo()
-
getPhase
public java.lang.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.
-
getVolumesAttached
public java.util.List<AttachedVolume> getVolumesAttached()
List of volumes that are attached to the node.
-
getVolumesInUse
public java.util.List<java.lang.String> getVolumesInUse()
List of attachable volumes in use (mounted) by the node.
-
setAddresses
public void setAddresses(java.util.List<NodeAddress> addresses)
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).
-
setAllocatable
public void setAllocatable(java.util.Map<java.lang.String,java.lang.String> allocatable)
Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.
-
setCapacity
public void setCapacity(java.util.Map<java.lang.String,java.lang.String> capacity)
Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
-
setConditions
public void setConditions(java.util.List<NodeCondition> conditions)
Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
-
setConfig
public void setConfig(NodeConfigStatus config)
-
setDaemonEndpoints
public void setDaemonEndpoints(NodeDaemonEndpoints daemonEndpoints)
-
setImages
public void setImages(java.util.List<ContainerImage> images)
List of container images on this node
-
setNodeInfo
public void setNodeInfo(NodeSystemInfo nodeInfo)
-
setPhase
public void setPhase(java.lang.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.
-
setVolumesAttached
public void setVolumesAttached(java.util.List<AttachedVolume> volumesAttached)
List of volumes that are attached to the node.
-
setVolumesInUse
public void setVolumesInUse(java.util.List<java.lang.String> volumesInUse)
List of attachable volumes in use (mounted) by the node.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-