Kubernetes Submit Queue
2b0c7e2372
Merge pull request #57149 from deads2k/rebase-02-quota
...
Automatic merge from submit-queue (batch tested with PRs 58144, 57149). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md ">here</a>.
make quota reusable
Quota is logically a re-useable component so that replenishment and admission can be done in constituent servers. This makes it possible to embed. More cleanup is probably required, but this is the minimum.
2018-01-22 19:02:29 -08:00
hzxuzhonghu
7c5f9e0bba
refactor admission flag: add two admission flags and make plugins auto in recommended order
2018-01-19 13:16:36 +08:00
Dr. Stefan Schimanski
1a552bbe14
admission: do not leak admission config types outside of the plugins
2018-01-15 14:37:41 +01:00
David Eads
7dc7693e86
make quota reusable
2017-12-13 08:39:55 -05:00
David Eads
ccd4f4a4b6
make admission config scheme configurable
2017-11-21 15:23:16 -05:00
Dr. Stefan Schimanski
012b085ac8
pkg/apis/core: mechanical import fixes in dependencies
2017-11-09 12:14:08 +01:00
David Eads
75c448dbc7
make easy validation admission plugins into validators
2017-11-03 07:54:39 -04:00
Dr. Stefan Schimanski
aedcf681b3
admission: rename Validate{ -> Initialization}, Validat{ingAdmit -> e}
2017-11-02 09:29:55 +01:00
Dr. Stefan Schimanski
131905cdb8
admission: unify plugin constructors
2017-10-30 16:56:38 +01:00
Derek Carr
5b4ca14307
Update admission control framework for quota
2017-10-27 11:08:14 -04:00
p0lyn0mial
c5019bf696
remove init blocks from all admission plugins
2017-05-23 22:00:32 +02:00
Kubernetes Submit Queue
4f55f49035
Merge pull request #46042 from derekwaynecarr/quota-admission-registry
...
Automatic merge from submit-queue (batch tested with PRs 45346, 45903, 45958, 46042, 45975)
ResourceQuota admission control injects registry
**What this PR does / why we need it**:
The `ResourceQuota` admission controller works with a registry that maps a GroupKind to an Evaluator. The registry used in the existing plug-in is not injectable, which makes usage of the ResourceQuota plug-in in other API server contexts difficult. This PR updates the code to support late injection of the registry via a plug-in initializer.
2017-05-19 22:29:34 -07:00
Derek Carr
a71bea312a
ResourceQuota admission control injects registry
2017-05-18 23:17:13 -04:00
p0lyn0mial
3f8d6e9210
Change all the existing admission init blocks to call a Register function
...
this is a two stage refactor when done there will be no init block in admission plugins.
Instead all plugins expose Register function which accept admission.Plugins instance.
The registration to global plugin registry happens inside Register func.
2017-05-18 22:25:01 +02:00
Dr. Stefan Schimanski
63f547e1b1
pkg/admission: make plugin registry non-global
2017-04-12 11:37:25 +02:00
deads2k
d89862beca
update names for kube plugin initializer to avoid conflicts
2017-03-06 10:18:21 -05:00
Andy Goldstein
022bff7fbe
Switch admission to use shared informers
2017-02-23 11:16:09 -05:00
Derek Carr
3fad0cb52a
Implement support for limited resources in quota
2017-02-18 12:10:22 -05:00
deads2k
01b3b2b461
move admission to genericapiserver
2017-01-18 08:15:19 -05:00
deads2k
2861509b6d
refactored admission to avoid internal client references
2017-01-03 15:50:12 -05:00
Chao Xu
1044aa4500
plugin/admission; including resourcequota admission
2016-11-23 15:53:09 -08:00
derekwaynecarr
1bcb057636
quota controller uses informers if available for pod calculation
2016-10-31 11:38:22 -04:00
deads2k
ada37c2163
allow lock acquisition injection for quota admission
2016-07-06 09:39:42 -04:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
deads2k
a28cf3963b
refactor quota evaluation to cleanly abstract the quota access
2016-06-28 11:38:18 -04:00
derekwaynecarr
fc3e71894d
Improve quota integration test to not use events, reduce number of pods provisioned
2016-05-10 19:50:36 -04:00
derekwaynecarr
ca7a8b50e6
Sort resources in quota errors to avoid duplicate events
2016-05-06 17:44:28 -04:00
deads2k
0061479890
fully qualify admission resources and kinds
2016-04-26 07:55:33 -04:00
deads2k
d3c6363093
use single writer to improve quota performance
2016-04-25 10:42:26 -04:00
Salvatore Dario Minonne
15b7577454
Adding nodeports services to quota
2016-04-12 11:09:16 +02:00
Wojciech Tyczynski
2699be2e7e
Switch api.ObjetaMetaFor to meta.Accessor
2016-03-31 17:52:31 +02:00
Michal Minar
2601ee56ab
Set a missing namespace on object to admit
...
Custom quota evaluators may need to query a target namespace of an input
object during quota admission check. For this, namespace needs to be
known.
Signed-off-by: Michal Minar <miminar@redhat.com>
2016-03-15 17:03:55 +01:00
Wojciech Tyczynski
2f6d034cea
Workaround long latency of POST pods
2016-03-03 10:45:43 +01:00
derekwaynecarr
95df07aa9d
Improve overlapping quota behavior when there is a resource conflict
2016-02-26 20:34:15 -05:00
derekwaynecarr
af85fb57c3
Make ResourceQuota admission and controller work generically
2016-02-26 20:34:15 -05:00
Chao Xu
184440f8ef
rename release_1_2 to internalclientset
2016-02-05 14:02:28 -08:00
Chao Xu
1b047f8e67
rename legacy to core
2016-02-04 14:26:56 -08:00
Chao Xu
f9f5736b01
grep sed
2016-02-03 13:06:07 -08:00
Chao Xu
cddd7b56a4
replace client with clientset in kubelet and other places
2016-02-02 20:28:45 -08:00
Wojciech Tyczynski
960808bf08
Switch to versioned ListOptions in client.
2015-12-14 14:26:09 +01:00
Wojciech Tyczynski
a915b8b29a
Merge pull request #18080 from wojtek-t/list_options_in_listwatch
...
Pass ListOptions to List in ListWatch.
2015-12-09 14:27:51 +01:00
deads2k
3f045cf168
udpate admission for API groups
2015-12-07 08:55:01 -05:00
Wojciech Tyczynski
b0fcb5adef
Pass ListOptions to List in ListWatch.
2015-12-07 11:53:53 +01:00
Wojciech Tyczynski
6dcb689d4e
Simplify List() signature in clients.
2015-12-03 09:54:07 +01:00
k8s-merge-robot
8a8639d7af
Merge pull request #17863 from wojtek-t/only_list_options_in_watch
...
Auto commit by PR queue bot
2015-12-02 06:28:28 -08:00
Wojciech Tyczynski
8343c8ce6c
Pass ListOptions to List() methods.
2015-12-01 15:00:36 +01:00
Wojciech Tyczynski
d2dfc912e6
Simplify Watch() signature in clients.
2015-12-01 14:19:26 +01:00
Wojciech Tyczynski
b6ef62af24
Use unversioned.ListOptions in clients.
2015-11-24 16:52:09 +01:00
k8s-merge-robot
04ca4a9690
Merge pull request #16941 from derekwaynecarr/fix_16733
...
Auto commit by PR queue bot
2015-11-19 12:12:34 -08:00
derekwaynecarr
9ce6ef87ac
Unnecessary updates to ResourceQuota when doing UPDATE to non-pod resources
2015-11-10 12:01:08 -05:00