PodResourceClaim class
PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod.
It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.
When the DRAWorkloadResourceClaims feature gate is enabled and this Pod belongs to a PodGroup, a PodResourceClaim is matched to a PodGroupResourceClaim if all of their fields are equal (Name, ResourceClaimName, and ResourceClaimTemplateName). A matched claim references a single ResourceClaim shared across all Pods in the PodGroup, reserved for the PodGroup in ResourceClaimStatus.ReservedFor rather than for individual Pods.
Constructors
-
PodResourceClaim({required Input<
String> name, Input<String> ? resourceClaimName, Input<String> ? resourceClaimTemplateName, Input<ClaimSource> ? source}) -
Creates a new PodResourceClaim.
nameName uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.resourceClaimNameResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.resourceClaimTemplateNameResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.sourceSource describes where to find the ResourceClaim.const -
PodResourceClaim.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
name
→ Input<
String> -
Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.
final
-
resourceClaimName
→ Input<
String> ? -
ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.
final
-
resourceClaimTemplateName
→ Input<
String> ? -
ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
source
→ Input<
ClaimSource> ? -
Source describes where to find the ResourceClaim.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited