mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
Merge pull request #30145 from markturansky/limit_range_pvc
Automatic merge from submit-queue Add PVC storage to LimitRange This PR adds the ability to add a LimitRange to a namespace that enforces min/max on `pvc.Spec.Resources.Requests["storage"]`. @derekwaynecarr @abhgupta @kubernetes/sig-storage Examples forthcoming. ```release-note pvc.Spec.Resources.Requests min and max can be enforced with a LimitRange of type "PersistentVolumeClaim" in the namespace ```
This commit is contained in:
@@ -2684,6 +2684,8 @@ const (
|
||||
LimitTypePod LimitType = "Pod"
|
||||
// Limit that applies to all containers in a namespace
|
||||
LimitTypeContainer LimitType = "Container"
|
||||
// Limit that applies to all persistent volume claims in a namespace
|
||||
LimitTypePersistentVolumeClaim LimitType = "PersistentVolumeClaim"
|
||||
)
|
||||
|
||||
// LimitRangeItem defines a min/max usage limit for any resource that matches on kind
|
||||
|
||||
Reference in New Issue
Block a user