Commit Graph

65 Commits

Author SHA1 Message Date
Dr. Stefan Schimanski 4cc22eae4a k8s.io/apiserver: straighten EtcdOptions, backend Config and kube RESTOptionsFactory 2017-02-15 10:24:59 +01:00
Dr. Stefan Schimanski c8c32005d8 k8s.io/apiserver: fixup imports and renamed packages 2017-02-15 10:24:58 +01:00
deads2k 5c9304e9c4 remove duplication of RESTOptionsGetter for kube 2017-02-08 09:08:58 -05:00
deads2k 9c3834e9c2 streamline etcd options for aggregated api server 2017-02-08 09:07:47 -05:00
deads2k 409dcf10b4 apiserver command line options lead to config 2017-02-07 07:57:11 -05:00
Dr. Stefan Schimanski 823995762f Mechanical fixup imports: pkg/genericapiserver 2017-02-03 08:15:45 +01:00
Dr. Stefan Schimanski 9fcfd12724 pkg/genericapiserver/server: cut off from pkg/api 2017-02-02 15:19:01 +01:00
Dr. Stefan Schimanski 2442e4115c pkg/storage/etcd: cut off pkg/api scheme 2017-02-02 11:16:28 +01:00
deads2k d8c30eccad move apiserver options 2017-02-01 15:18:33 -05:00
deads2k 1b90b57809 move storage/storagebackend to apiserver 2017-01-27 08:49:55 -05:00
deads2k 24108793fc move genericapiserver authenticator and authorizer factories 2017-01-26 08:50:47 -05:00
Dr. Stefan Schimanski 474263e6fe genericapiserver: fix imports 2017-01-19 13:06:47 +01:00
Dr. Stefan Schimanski 16d903a276 Fix imports 2017-01-17 09:30:30 +01: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
Dr. Stefan Schimanski 2a45041493 Move apiserver cloudprovider dep into kubeapiserver 2017-01-05 09:40:03 +01:00
deads2k cf62f206ad decouple genericapiserver from non-generic authenticator 2016-12-22 07:48:08 -05: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
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
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
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
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
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
Timothy St. Clair f569ebb3a5 Update etcd default ports for v3, and validate tests 2016-08-17 07:49:19 -05: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
David McMahon b222f28cb9 Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -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
nikhiljindal fc7b306337 Adding a discovery summarizer server 2016-05-13 13:52:23 -07:00
Tim Hockin 2c8508c44a Rename codecgen "testdata" dir so ugorji works
Go mistreats "testdata" and can't find vendor/ dirs.
2016-05-08 20:32:09 -07:00
Clayton Coleman 52f2d566d4 Split the storage and negotiation parts of Codecs
The codec factory should support two distinct interfaces - negotiating
for a serializer with a client, vs reading or writing data to a storage
form (etcd, disk, etc). Make the EncodeForVersion and DecodeToVersion
methods only take Encoder and Decoder, and slight refactoring elsewhere.

In the storage factory, use a content type to control what serializer to
pick, and use the universal deserializer. This ensures that storage can
read JSON (which might be from older objects) while only writing
protobuf. Add exceptions for those resources that may not be able to
write to protobuf (specifically third party resources, but potentially
others in the future).
2016-05-05 12:08:23 -04:00