Skip to content

Commit 697d7e7

Browse files
committed
KEP-2485: Scheduler changes for beta graduation criteria
1 parent 3490c6e commit 697d7e7

File tree

1 file changed

+4
-2
lines changed
  • keps/sig-storage/2485-read-write-once-pod-pv-access-mode

1 file changed

+4
-2
lines changed

keps/sig-storage/2485-read-write-once-pod-pv-access-mode/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ This access mode will be enforced in two places:
391391

392392
First is at the time a pod is scheduled. When scheduling a pod, if another pod
393393
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.
395395

396396
In order to determine if a pod using a ReadWriteOncePod PVC can be scheduled, we
397397
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
402402
for the PVC. In the PreFilter extension point, if the pod's PVC is using
403403
ReadWriteOncePod, we will query this map for each node checking for references
404404
to the scheduled pod's PVC. If one is found the pod will fail scheduling and be
405-
marked unresolvable.
405+
marked UnschedulableAndUnresolvable.
406406

407407
[volume restrictions plugin]: https://github.com/kubernetes/kubernetes/blob/v1.21.0/pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions.go#L29
408408
[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.
601601

602602
#### Beta
603603

604+
- Scheduler enforces ReadWriteOncePod access mode by marking pods as
605+
Unschedulable, preemption logic added
604606
- ReadWriteOncePod access mode has end to end test coverage
605607
- Mock CSI driver supports `SINGLE_NODE_*_WRITER` access modes, relevant end to
606608
end tests updated to use this driver

0 commit comments

Comments
 (0)