kubernetes/test
Chris Henzie dbc7d8ded0 feat: support preemption for pods using ReadWriteOncePod PVCs
PVCs using the ReadWriteOncePod access mode can only be referenced by a
single pod. When a pod is scheduled that uses a ReadWriteOncePod PVC,
return "Unschedulable" if the PVC is already in-use in the cluster.

To support preemption, the "VolumeRestrictions" scheduler plugin
computes cycle state during the PreFilter phase. This cycle state
contains the number of references to the ReadWriteOncePod PVCs used by
the pod-to-be-scheduled.

During scheduler simulation (AddPod and RemovePod), we add and remove
reference counts from the cycle state if they use any of these
ReadWriteOncePod PVCs.

In the Filter phase, the scheduler checks if there are any PVC reference
conflicts, and returns "Unschedulable" if there is a conflict.

This is a required feature for the ReadWriteOncePod beta. See for more context:
https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/2485-read-write-once-pod-pv-access-mode#beta
2023-01-30 10:59:22 -08:00
..
cmd Merge pull request #113542 from ardaguclu/fix-shortname-disperancy 2023-01-03 09:29:43 -08:00
conformance Graduate field validation to GA 2023-01-24 17:48:57 +00:00
e2e Merge pull request #115310 from mzaian/etcd-3.5.7-build-image 2023-01-28 10:20:42 -08:00
e2e_kubeadm e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
e2e_node e2e node: Update runtime class handler skip logic 2023-01-24 14:43:24 -08:00
fixtures Updating pause image refernces to 3.9 2022-11-14 10:24:54 -08:00
fuzz
images Merge pull request #114915 from brianwang12/master 2023-01-19 20:30:14 -08:00
instrumentation Make generated-stable-metrics use git ls-files 2023-01-22 15:22:55 -08:00
integration feat: support preemption for pods using ReadWriteOncePod PVCs 2023-01-30 10:59:22 -08:00
kubemark Drop unsupported iks configuration for kubemark 2022-09-25 17:33:22 -04:00
list
soak/serve_hostnames fix typos 2022-06-15 13:38:48 +09:00
typecheck Avoid typechecking stdlib 2023-01-28 23:32:50 -05:00
utils etcd: Update to version 3.5.7 2023-01-27 17:24:00 +01:00
OWNERS test/OWNERS: add pohly as approver 2023-01-09 09:54:10 +01:00