Class V1NodeStatus

java.lang.Object
io.kubernetes.client.openapi.models.V1NodeStatus

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1NodeStatus extends Object
NodeStatus is information about the current status of a node.
  • Field Details

  • Constructor Details

    • V1NodeStatus

      public V1NodeStatus()
  • Method Details

    • addresses

      public V1NodeStatus addresses(List<V1NodeAddress> addresses)
    • addAddressesItem

      public V1NodeStatus addAddressesItem(V1NodeAddress addressesItem)
    • getAddresses

      @Nullable public List<V1NodeAddress> 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

      public void setAddresses(List<V1NodeAddress> addresses)
    • allocatable

      public V1NodeStatus allocatable(Map<String,Quantity> allocatable)
    • putAllocatableItem

      public V1NodeStatus putAllocatableItem(String key, Quantity allocatableItem)
    • getAllocatable

      @Nullable public Map<String,Quantity> getAllocatable()
      Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.
      Returns:
      allocatable
    • setAllocatable

      public void setAllocatable(Map<String,Quantity> allocatable)
    • capacity

      public V1NodeStatus capacity(Map<String,Quantity> capacity)
    • putCapacityItem

      public V1NodeStatus putCapacityItem(String key, Quantity capacityItem)
    • getCapacity

      @Nullable public Map<String,Quantity> getCapacity()
      Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
      Returns:
      capacity
    • setCapacity

      public void setCapacity(Map<String,Quantity> capacity)
    • conditions

      public V1NodeStatus conditions(List<V1NodeCondition> conditions)
    • addConditionsItem

      public V1NodeStatus addConditionsItem(V1NodeCondition conditionsItem)
    • getConditions

      @Nullable public List<V1NodeCondition> getConditions()
      Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
      Returns:
      conditions
    • setConditions

      public void setConditions(List<V1NodeCondition> conditions)
    • config

      public V1NodeStatus config(V1NodeConfigStatus config)
    • getConfig

      @Nullable public V1NodeConfigStatus getConfig()
      Get config
      Returns:
      config
    • setConfig

      public void setConfig(V1NodeConfigStatus config)
    • daemonEndpoints

      public V1NodeStatus daemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints)
    • getDaemonEndpoints

      @Nullable public V1NodeDaemonEndpoints getDaemonEndpoints()
      Get daemonEndpoints
      Returns:
      daemonEndpoints
    • setDaemonEndpoints

      public void setDaemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints)
    • images

      public V1NodeStatus images(List<V1ContainerImage> images)
    • addImagesItem

      public V1NodeStatus addImagesItem(V1ContainerImage imagesItem)
    • getImages

      @Nullable public List<V1ContainerImage> getImages()
      List of container images on this node
      Returns:
      images
    • setImages

      public void setImages(List<V1ContainerImage> images)
    • nodeInfo

      public V1NodeStatus nodeInfo(V1NodeSystemInfo nodeInfo)
    • getNodeInfo

      @Nullable public V1NodeSystemInfo getNodeInfo()
      Get nodeInfo
      Returns:
      nodeInfo
    • setNodeInfo

      public void setNodeInfo(V1NodeSystemInfo nodeInfo)
    • phase

      public V1NodeStatus phase(String phase)
    • getPhase

      @Nullable 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.
      Returns:
      phase
    • setPhase

      public void setPhase(String phase)
    • volumesAttached

      public V1NodeStatus volumesAttached(List<V1AttachedVolume> volumesAttached)
    • addVolumesAttachedItem

      public V1NodeStatus addVolumesAttachedItem(V1AttachedVolume volumesAttachedItem)
    • getVolumesAttached

      @Nullable public List<V1AttachedVolume> getVolumesAttached()
      List of volumes that are attached to the node.
      Returns:
      volumesAttached
    • setVolumesAttached

      public void setVolumesAttached(List<V1AttachedVolume> volumesAttached)
    • volumesInUse

      public V1NodeStatus volumesInUse(List<String> volumesInUse)
    • addVolumesInUseItem

      public V1NodeStatus addVolumesInUseItem(String volumesInUseItem)
    • getVolumesInUse

      @Nullable public List<String> getVolumesInUse()
      List of attachable volumes in use (mounted) by the node.
      Returns:
      volumesInUse
    • setVolumesInUse

      public void setVolumesInUse(List<String> volumesInUse)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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 V1NodeStatus
    • fromJson

      public static V1NodeStatus fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of V1NodeStatus to an JSON string
      Returns:
      JSON string