Commit Graph

83 Commits

Author SHA1 Message Date
Dr. Stefan Schimanski a920079952 Update bazel 2017-01-17 09:30:48 +01:00
Dr. Stefan Schimanski 16d903a276 Fix imports 2017-01-17 09:30:30 +01:00
deads2k 3030b80a92 move name generation to generic api server storage helpers 2017-01-16 16:04:04 -05:00
deads2k 3ec4cc832a mechanicals 2017-01-13 16:33:09 -05:00
deads2k 9243aa16a7 mechanical repercussions 2017-01-13 08:27:14 -05:00
deads2k 8cb95e784b start the apimachinery repo 2017-01-11 09:09:48 -05:00
Jeff Grafton 065ce137bd Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
Kubernetes Submit Queue b3859edea1 Merge pull request #39435 from sttts/sttts-cloudprovider-to-master
Automatic merge from submit-queue

Move apiserver cloudprovider dep into kubeapiserver
2017-01-05 02:29:11 -08:00
Dr. Stefan Schimanski 2a45041493 Move apiserver cloudprovider dep into kubeapiserver 2017-01-05 09:40:03 +01:00
Dr. Stefan Schimanski afed335bf1 Move pkg/api.{Context,RequestContextMapper} into pkg/genericapiserver/api/request 2017-01-03 14:57:33 +01:00
Mike Danese 7636113fb2 autogenerated 2016-12-29 13:04:10 -08:00
deads2k cf62f206ad decouple genericapiserver from non-generic authenticator 2016-12-22 07:48:08 -05:00
Dr. Stefan Schimanski 52c93d96bb Update bazel 2016-12-16 17:49:23 +01:00
Dr. Stefan Schimanski 4310b4b40f Clean up apiserver and federation defaulting and validation 2016-12-16 17:23:43 +01:00
Dr. Stefan Schimanski 648c918e88 genericapiserver: move MasterCount and service options into master 2016-12-16 17:23:43 +01:00
Dr. Stefan Schimanski cec938ffbf genericapiserver: unify swagger and openapi in config 2016-12-14 18:41:04 +01:00
Mike Danese 92ef843047 fix examples/ compilation so that test/ also compiles
fix network-tester cauldron serve_hostnames
2016-12-12 15:14:49 -08:00
Monis Khan 57604816c7 Refactor REST storage to use generic defaults
Signed-off-by: Monis Khan <mkhan@redhat.com>
2016-12-08 17:24:21 -05:00
deads2k f96d4775dc join client CA bundles into the accept path for genericapiserver 2016-12-06 09:56:13 -05:00
deads2k 2d8ab875b2 update delegating auth to include front-proxy 2016-12-06 09:40:07 -05:00
Dr. Stefan Schimanski 224d4aa846 Stratify certificate loading and self-sign cert generation
This removes all dependencies on Config during cert generation, only operating
on ServerRunOptions. This way we get rid of the repeated call of Config.Complete
and cleanly stratify the GenericApiServer bootstrapping.
2016-12-05 14:58:15 +01:00
Dr. Stefan Schimanski 88a9c7dbc8 Move RESTStorageProvider interface into pkg/master 2016-12-03 18:35:15 +01:00
Kubernetes Submit Queue ee95a259ba Merge pull request #36889 from wojtek-t/reuse_fields_and_labels
Automatic merge from submit-queue

Reuse fields and labels

This should significantly reduce memory allocations in apiserver in large cluster.
Explanation:
- every kubelet is refreshing watch every 5-10 minutes (this generally is not causing relist - it just renews watch)
- that means, in 5000-node cluster, we are issuing ~10 watches per second
- since we don't have "watch heartbets", the watch is issued from previously received resourceVersion
- to make some assumption, let's assume pods are evenly spread across pods, and writes for them are evenly spread - that means, that a given kubelet is interested in 1 per 5000 pod changes
- with that assumption, each watch, has to process 2500 (on average) previous watch events
- for each of such even, we are currently computing fields.

This PR is fixing this problem.
2016-12-02 21:49:43 -08:00
deads2k 4d6eae7d1d split out authentication options 2016-11-29 10:59:43 -05:00
deads2k f29fdac1f5 remove some options from mega-struct 2016-11-29 10:59:43 -05:00
deads2k 4d18fa2e46 split insecure serving options 2016-11-29 10:59:42 -05:00
deads2k 4811083bc8 split secure serving options 2016-11-29 10:59:42 -05:00
deads2k 82f9b6b0f5 split generic etcdoption out of main struct 2016-11-29 10:59:42 -05:00
Wojciech Tyczynski ad7a234ea8 Cache fields for filtering in watchCache. 2016-11-29 09:48:09 +01:00
Clayton Coleman c932ca4d17 Move GroupVersion* to pkg/runtime/schema 2016-11-23 21:03:36 -06:00
Dr. Stefan Schimanski 31058e0bc9 Make GenericApiServer.Run interruptable and fail on first listen 2016-11-01 09:50:56 +01:00
Chao Xu 2fddf46ea4 include multiple versions in clientset
update client-gen to use the term "internalversion" rather than "unversioned";
leave internal one unqualified;
cleanup client-gen
2016-10-29 13:30:47 -07:00
Tim Hockin e87fd7b5f0 Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
Dr. Stefan Schimanski a443d8d4e6 Move swagger+openapi setup to routes and decouple from run 2016-10-22 13:42:22 +02:00
deads2k 66fccf3f37 default serializer 2016-10-14 11:27:32 -04:00
deads2k 00faff90bc split genericapiserver configuration apart so that you can run without flag options 2016-10-13 13:09:53 -04:00
deads2k 2f7772a986 stop plumbing options to start 2016-10-03 13:35:00 -04:00
Dr. Stefan Schimanski 6cc7ab18d3 Decouple defaulting from genericapiserver and master 2016-09-28 23:16:09 +02:00
Hongchao Deng d839696fa0 pass SelectionPredicate instead of Filter to storage layer 2016-09-26 09:47:19 -07:00
Kubernetes Submit Queue 24714b0ccf Merge pull request #33266 from sttts/sttts-one-installapigroups
Automatic merge from submit-queue

Reduce genericapiserver api surface
2016-09-23 02:32:07 -07:00
deads2k fc6f275901 remove storage related fields from genericapiserver 2016-09-22 09:21:34 -04:00
Dr. Stefan Schimanski 0475771a4b Reduce genericapiserver api surface 2016-09-22 13:43:32 +02:00
Davanum Srinivas e29292b3e1 Allow secure access to apiserver from Admission Controllers
* Allow options.InsecurePort to be set to 0 to switch off insecure access
* In NewSelfClient, Set the TLSClientConfig to the cert and key files
  if InsecurePort is switched off
* Mint a bearer token that allows the client(s) created in NewSelfClient
  to talk to the api server
* Add a new authenticator that checks for this specific bearer token

Fixes #13598
2016-09-20 10:42:21 -04:00
deads2k 2ec02bcf65 refactor genericapiserver new to combine initialization 2016-09-08 08:57:10 -04:00
David McMahon 63e1c77a21 Update the latestReleaseBranch to release-1.4 in the munger. 2016-09-01 14:40:55 -07:00
Hongchao Deng cbf3673602 return destroy func to clean up internal resources of storage 2016-08-25 08:32:21 -07:00
Kubernetes Submit Queue f3bb50e84a Merge pull request #30529 from hongchaodeng/r1
Automatic merge from submit-queue

change all PredicateFunc to use SelectionPredicate

What?
- This PR changes all PredicateFunc in registry to return SelectionPredicate instead of Matcher interface.

Why?
- We want to pass SelectionPredicate to storage layer. Matcher interface did not expose enough information for indexing.
2016-08-20 00:24:40 -07:00
Timothy St. Clair 306b538cdb etcd3 validation showed that several unit tests that depend on apiserver being fully
stood up should be integration tests, not unit tests.
2016-08-18 14:12:24 -05:00
Timothy St. Clair f569ebb3a5 Update etcd default ports for v3, and validate tests 2016-08-17 07:49:19 -05:00
Hongchao Deng dbc8cfaf4f generic.Matcher -> *generic.SelectionPredicate 2016-08-13 21:52:11 -07:00