@@ -4489,6 +4489,31 @@ type PodResourceClaimStatus struct {
4489
4489
ResourceClaimName * string `json:"resourceClaimName,omitempty" protobuf:"bytes,2,opt,name=resourceClaimName"`
4490
4490
}
4491
4491
4492
+ // PodExtendedResourceClaimStatus is stored in the PodStatus for the extended
4493
+ // resource requests backed by DRA. It stores the generated name for
4494
+ // the corresponding special ResourceClaim created by the scheduler.
4495
+ type PodExtendedResourceClaimStatus struct {
4496
+ // RequestMappings identifies the mapping of <container, extended resource backed by DRA> to device request
4497
+ // in the generated ResourceClaim.
4498
+ // +listType=atomic
4499
+ RequestMappings []ContainerExtendedResourceRequest `json:"requestMappings" protobuf:"bytes,1,rep,name=requestMappings"`
4500
+
4501
+ // ResourceClaimName is the name of the ResourceClaim that was
4502
+ // generated for the Pod in the namespace of the Pod.
4503
+ ResourceClaimName string `json:"resourceClaimName" protobuf:"bytes,2,name=resourceClaimName"`
4504
+ }
4505
+
4506
+ // ContainerExtendedResourceRequest has the mapping of container name,
4507
+ // extended resource name to the device request name.
4508
+ type ContainerExtendedResourceRequest struct {
4509
+ // The name of the container requesting resources.
4510
+ ContainerName string `json:"containerName" protobuf:"bytes,1,name=containerName"`
4511
+ // The name of the extended resource in that container which gets backed by DRA.
4512
+ ResourceName string `json:"resourceName" protobuf:"bytes,2,name=resourceName"`
4513
+ // The name of the request in the special ResourceClaim which corresponds to the extended resource.
4514
+ RequestName string `json:"requestName" protobuf:"bytes,3,name=requestName"`
4515
+ }
4516
+
4492
4517
// OSName is the set of OS'es that can be used in OS.
4493
4518
type OSName string
4494
4519
@@ -5319,6 +5344,10 @@ type PodStatus struct {
5319
5344
// +featureGate=DynamicResourceAllocation
5320
5345
// +optional
5321
5346
ResourceClaimStatuses []PodResourceClaimStatus `json:"resourceClaimStatuses,omitempty" patchStrategy:"merge,retainKeys" patchMergeKey:"name" protobuf:"bytes,15,rep,name=resourceClaimStatuses"`
5347
+ // Status of extended resource claim backed by DRA.
5348
+ // +featureGate=DRAExtendedResource
5349
+ // +optional
5350
+ ExtendedResourceClaimStatus * PodExtendedResourceClaimStatus `json:"extendedResourceClaimStatus,omitempty" protobuf:"bytes,18,opt,name=extendedResourceClaimStatus"`
5322
5351
}
5323
5352
5324
5353
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
0 commit comments