Skip to content

Commit dcc3459

Browse files
authored
Merge pull request #52522 from pacoxu/dra-example
fix dra resource slice example: boolean to bool
2 parents ccbeb71 + 54e8d1b commit dcc3459

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

content/en/blog/_posts/2025-09-18-dra-consumable-capacity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ spec:
140140
requests: # for devices
141141
- name: req0
142142
exactly:
143-
- deviceClassName: resource.example.com
143+
deviceClassName: resource.example.com
144144
capacity:
145145
requests: # for resources which must be provided by those devices
146146
memory: 10Gi

content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ spec:
291291
size:
292292
string: "large"
293293
cat:
294-
boolean: true
294+
bool: true
295295
```
296296
This ResourceSlice is managed by the `resource-driver.example.com` driver in the
297297
`black-cat-pool` pool. The `allNodes: true` field indicates that any node in the
@@ -653,7 +653,7 @@ spec:
653653
requests:
654654
- name: req-0
655655
exactly:
656-
- deviceClassName: resource.example.com
656+
deviceClassName: resource.example.com
657657
capacity:
658658
requests:
659659
bandwidth: 1G
@@ -825,7 +825,12 @@ metadata:
825825
spec:
826826
driver: dra.example.com
827827
nodeSelector:
828-
accelerator-type: high-performance
828+
nodeSelectorTerms:
829+
- matchExpressions:
830+
- key: accelerator-type
831+
operator: In
832+
values:
833+
- "high-performance"
829834
pool:
830835
name: gpu-pool
831836
generation: 1

0 commit comments

Comments
 (0)