-
Notifications
You must be signed in to change notification settings - Fork 42k
ResourceQuota add object count support for secret and volume claims #6593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
|
LGTM wrt PVC. Thanks for adding this. I had a follow-up task to do this. I see this limits the number of volumes a namespace can have. Would this be the appropriate place to also restrict the size of volumes a user can have? |
|
@markturansky I believe this doesn't impose a limitation on the number of PVs a namespace can have a priori, just adds some examples of how to do it. @derekwaynecarr correct me if I'm wrong. LGTM re: secrets |
|
We need to add support for computing aggregate storage on ResourceQuota the way we do for CPU and memory. We also should have the ability on a LimitRange to restrict the size of a volume a claim can reference. Restricting the count is easier hence the quick PR here. The other are for you to follow up and I can assist. Sent from my iPhone
|
|
@pmorie - Correct. Just gives a namespace administrator ability to limit the number of secrets to X and volume claims to Y in a particular namespace. Sent from my iPhone
|
|
@derekwaynecarr thanks for the clarification. I will follow up with you on those tasks. |
|
@derekwaynecarr needs rebase, then I'm happy to merge. |
d4340b8 to
c3e6a6f
Compare
|
@brendandburns - rebased now. should be good to merge. |
c3e6a6f to
7bc92ce
Compare
7bc92ce to
06eb45f
Compare
|
rebased on latest and travis is happy again. |
ResourceQuota add object count support for secret and volume claims
Since the introduce of a ResourceQuota, two new namespace scoped objects were added.
This PR supports limiting the total number of secrets and volume claims that a namespace may have.
/cc @markturansky @pmorie