mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 04:36:00 +00:00
DRA API: AdminAccess in DeviceRequestAllocationResult
Drivers need to know that because admin access may also grant additional permissions. The allocator needs to ignore such results when determining which devices are considered as allocated. In both cases it is conceptually cleaner to not rely on the content of the ClaimSpec.
This commit is contained in:
7
api/openapi-spec/swagger.json
generated
7
api/openapi-spec/swagger.json
generated
@@ -15562,6 +15562,10 @@
|
||||
"io.k8s.api.resource.v1alpha3.DeviceRequestAllocationResult": {
|
||||
"description": "DeviceRequestAllocationResult contains the allocation result for one request.",
|
||||
"properties": {
|
||||
"adminAccess": {
|
||||
"description": "AdminAccess is a copy of the AdminAccess value in the request which caused this device to be allocated.\n\nNew allocations are required to have this set. Old allocations made by Kubernetes 1.31 do not have it yet. Clients which want to support Kubernetes 1.31 need to look up the request and retrieve the value from there if this field is not set.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"device": {
|
||||
"description": "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.",
|
||||
"type": "string"
|
||||
@@ -15583,7 +15587,8 @@
|
||||
"request",
|
||||
"driver",
|
||||
"pool",
|
||||
"device"
|
||||
"device",
|
||||
"adminAccess"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
|
@@ -526,6 +526,10 @@
|
||||
"io.k8s.api.resource.v1alpha3.DeviceRequestAllocationResult": {
|
||||
"description": "DeviceRequestAllocationResult contains the allocation result for one request.",
|
||||
"properties": {
|
||||
"adminAccess": {
|
||||
"description": "AdminAccess is a copy of the AdminAccess value in the request which caused this device to be allocated.\n\nNew allocations are required to have this set. Old allocations made by Kubernetes 1.31 do not have it yet. Clients which want to support Kubernetes 1.31 need to look up the request and retrieve the value from there if this field is not set.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"device": {
|
||||
"default": "",
|
||||
"description": "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.",
|
||||
@@ -551,7 +555,8 @@
|
||||
"request",
|
||||
"driver",
|
||||
"pool",
|
||||
"device"
|
||||
"device",
|
||||
"adminAccess"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
|
Reference in New Issue
Block a user