Class 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.
    • Constructor Detail

      • NodeStatus

        public NodeStatus()
    • Method Detail

      • 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
      • getImages

        public java.util.List<ContainerImage> getImages()
        List of container images on this node
      • 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
      • setImages

        public void setImages​(java.util.List<ContainerImage> images)
        List of container images on this node
      • 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 class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object