Skip to content

Commit 8574145

Browse files
pohlyklueska
andauthored
Apply suggestions from code review
Co-authored-by: Kevin Klues <[email protected]>
1 parent b00718d commit 8574145

File tree

1 file changed

+6
-7
lines changed
  • keps/sig-node/4381-dra-structured-parameters

1 file changed

+6
-7
lines changed

keps/sig-node/4381-dra-structured-parameters/README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,7 @@ because the allocation result is tracked in those claims, not the
532532

533533
#### Devices as a named list
534534

535-
Embedded inside each `ResourceSlice` is a list of one or more devices, each with sets of attributes
536-
and quantities.
535+
Embedded inside each `ResourceSlice` is a list of one or more devices, each of which contains separate sets of attributes and capacities (represented as quantities).
537536

538537
```yaml
539538
kind: ResourceSlice
@@ -1950,15 +1949,15 @@ type PodResourceClaimStatus struct {
19501949
##### ResourceQuota
19511950

19521951
The core ResourceQuota mechanism checks at admission time whether creating a
1953-
resource in the apiserver would exceed per-namespace limits. This mechanism
1954-
gets extended to support limiting the number of ResourceClaims based on what
1952+
resource in the apiserver would exceed per-namespace limits. We extend this
1953+
mechanim to support limiting the number of ResourceClaims based on what
19551954
gets requested.
19561955

1957-
A resource entry in ResourceQuota with the special
1956+
A resource entry in ResourceQuota with the name
19581957
`<device-class-name>.deviceclass.resource.k8s.io/devices` limits the number of
19591958
ResourceClaim objects in a namespace such that the number of devices requested
1960-
through those objects with that class does not exceed the limit. When admins
1961-
define classes so that they select specific device types, this quota mechanism
1959+
through objects with that device class does not exceed the specified limit. When admins
1960+
define device classes so that they select specific device types, this quota mechanism
19621961
can be used to limit access to those device types.
19631962

19641963
A single request may cause the allocation of multiple devices. For exact

0 commit comments

Comments
 (0)