Commit Graph

73 Commits

Author SHA1 Message Date
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
Hongchao Deng 8e1c4ec5ec change all PredicateFunc to use SelectionPredicate 2016-08-13 10:11:35 -07:00
Hongchao Deng 5814889762 move new etcd storage into cacher 2016-08-12 18:40:20 -07:00
mksalawa 2171935491 Extract etcd options from genericapiserver. 2016-08-09 13:35:53 +02:00
joe2far 10b5aff955 Fix broken warning image link in docs 2016-07-15 10:44:58 +01:00
Wojciech Tyczynski eaa713f8da Extend Filter interface with Trigger() and use it for pods and nodes 2016-07-13 08:45:18 +02:00
David McMahon b222f28cb9 Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
David McMahon f05b9a47e9 Updated docs and examples for release-1.3. 2016-06-13 12:24:34 -07:00
Dawn Chen 0cba8b9eae Revert "Versioning docs and examples for v1.4.0-alpha.0."
This reverts commit cce9db3aa9555671c5ddf69549b46ed0fd7e472a.
2016-06-10 16:46:46 -07:00
David McMahon b1e6c67b24 Versioning docs and examples for v1.4.0-alpha.0. 2016-06-10 14:55:35 -07:00
Clayton Coleman 60def1ee8c kube-apiserver options should be decoupled from impls
A few months ago we refactored options to keep it independent of the
implementations, so that it could be used in CLI tools to validate
config or to generate config, without pulling in the full dependency
tree of the master.  This change restores that by separating
server_run_options.go back to its own package.

Also, options structs should never contain non-serializable types, which
storagebackend.Config was doing with runtime.Codec. Split the codec out.

Fix a typo on the name of the etcd2.go storage backend.

Finally, move DefaultStorageMediaType to server_run_options.
2016-05-18 10:39:21 -04:00