Class V1ResourceStatus
java.lang.Object
io.kubernetes.client.openapi.models.V1ResourceStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T23:08:31.638427Z[Etc/UTC]")
public class V1ResourceStatus
extends Object
ResourceStatus represents the status of a single resource allocated to a Pod.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddResourcesItem
(V1ResourceHealth resourcesItem) boolean
getName()
Name of the resource.List of unique resources health.int
hashCode()
resources
(List<V1ResourceHealth> resources) void
void
setResources
(List<V1ResourceHealth> resources) toString()
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_RESOURCES
- See Also:
-
-
Constructor Details
-
V1ResourceStatus
public V1ResourceStatus()
-
-
Method Details
-
name
-
getName
Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:<claim_name>/<request>\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.- Returns:
- name
-
setName
-
resources
-
addResourcesItem
-
getResources
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases.- Returns:
- resources
-
setResources
-
equals
-
hashCode
public int hashCode() -
toString
-