Enforce ReadWriteOncePod access mode during scheduling

Check the PVC ref count on the node info cache to determine if a pod's
PVCs are in use. If they are and it is using ReadWriteOncePod, fail the
request.
This commit is contained in:
Chris Henzie
2021-06-16 13:21:49 -07:00
parent ebc3fdb293
commit 7ad44d04fc
11 changed files with 271 additions and 9 deletions

View File

@@ -23,4 +23,5 @@ type Features struct {
EnablePodAffinityNamespaceSelector bool
EnablePodDisruptionBudget bool
EnablePodOverhead bool
EnableReadWriteOncePod bool
}