@@ -4489,6 +4489,31 @@ type PodResourceClaimStatus struct {
44894489 ResourceClaimName * string `json:"resourceClaimName,omitempty" protobuf:"bytes,2,opt,name=resourceClaimName"`
44904490}
44914491
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+
44924517// OSName is the set of OS'es that can be used in OS.
44934518type OSName string
44944519
@@ -5319,6 +5344,10 @@ type PodStatus struct {
53195344 // +featureGate=DynamicResourceAllocation
53205345 // +optional
53215346 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"`
53225351}
53235352
53245353// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
0 commit comments