Skip to content

Commit 950a643

Browse files
committed
add mermaid flowchart
Signed-off-by: Rita Zhang <[email protected]>
1 parent 94bf684 commit 950a643

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

keps/sig-auth/5018-dra-adminaccess/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,19 @@ been added to the REST storage layer to only authorize `ResourceClaim` or
287287
the `kubernetes.io/dra-admin-access` label to only allow it for users with
288288
additional privileges.
289289

290+
```mermaid
291+
flowchart TD
292+
A[Admission Request to Create/Update ResourceClaim or ResourceClaimTemplate] --> B{adminAccess: true?}
293+
B -- No --> E
294+
B -- Yes --> D[Check Namespace Label]
295+
D -- Label Present --> E[Request Allowed]
296+
D -- No Label --> F[Request Rejected]
297+
E --> G[Resource Created/Updated]
298+
G --> H[Kubernetes Scheduler evaluates ResourceClaim]
299+
H -- Admin Access Devices --> I[Skip allocation checks; Device is not allocated]
300+
H -- Standard Claims --> J[Proceed with standard allocation checks]
301+
```
302+
290303
The `DRAAdminAccess` feature gate controls whether users can set the
291304
`adminAccess` field to true when requesting devices. That is checked in the
292305
apiserver. In addition, the scheduler will not allocate claims with admin access

0 commit comments

Comments
 (0)