k3s/pkg/quota
k8s-merge-robot 6ae6450a39 Merge pull request #28636 from derekwaynecarr/quota_pvc_storage
Automatic merge from submit-queue

Add support to quota pvc storage requests

Adds support to quota cumulative `PersistentVolumeClaim` storage requests in a namespace.

Per our chat today @markturansky @abhgupta - this is not done (lacks unit testing), but is functional.

This lets quota enforcement for `PersistentVolumeClaim` to occur at creation time.  Supporting bind time enforcement would require substantial more work.  It's possible this is sufficient for many, so I am opening it up for feedback.

In the future, I suspect we may want to treat local disk in a special manner, but that would have to be a different resource altogether (i.e. `requests.disk`) or something.

Example quota:

```
apiVersion: v1
kind: ResourceQuota
metadata:
  name: quota
spec:
  hard:
    persistentvolumeclaims: "10"
    requests.storage: "40Gi"
```

/cc @kubernetes/rh-cluster-infra @deads2k
2016-07-31 09:26:20 -07:00
..
evaluator/core Merge pull request #28636 from derekwaynecarr/quota_pvc_storage 2016-07-31 09:26:20 -07:00
generic Remove reflection path in meta.Accessor 2016-07-06 11:29:47 -04:00
install Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
OWNERS add owners for quota package 2016-06-07 11:46:50 -07:00
interfaces.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
resources.go Init container quota is inaccurate 2016-07-27 15:44:18 -04:00
resources_test.go Init container quota is inaccurate 2016-07-27 15:44:18 -04:00