@@ -391,7 +391,7 @@ This access mode will be enforced in two places:
391
391
392
392
First is at the time a pod is scheduled. When scheduling a pod, if another pod
393
393
is found using the same PVC and the PVC uses ReadWriteOncePod, then scheduling
394
- will fail and the pod will be considered unresolvable .
394
+ will fail and the pod will be considered UnschedulableAndUnresolvable .
395
395
396
396
In order to determine if a pod using a ReadWriteOncePod PVC can be scheduled, we
397
397
need to enumerate all pods and check if any are already consuming this PVC. This
@@ -402,7 +402,7 @@ The [node info cache] will be extended to map the PVC name to a reference count
402
402
for the PVC. In the PreFilter extension point, if the pod's PVC is using
403
403
ReadWriteOncePod, we will query this map for each node checking for references
404
404
to the scheduled pod's PVC. If one is found the pod will fail scheduling and be
405
- marked unresolvable .
405
+ marked UnschedulableAndUnresolvable .
406
406
407
407
[ volume restrictions plugin ] : https://github.com/kubernetes/kubernetes/blob/v1.21.0/pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions.go#L29
408
408
[ node info cache ] : https://github.com/kubernetes/kubernetes/blob/v1.21.0/pkg/scheduler/framework/types.go#L357
@@ -601,6 +601,8 @@ in back-to-back releases.
601
601
602
602
#### Beta
603
603
604
+ - Scheduler enforces ReadWriteOncePod access mode by marking pods as
605
+ Unschedulable, preemption logic added
604
606
- ReadWriteOncePod access mode has end to end test coverage
605
607
- Mock CSI driver supports ` SINGLE_NODE_*_WRITER ` access modes, relevant end to
606
608
end tests updated to use this driver
0 commit comments