Commit Graph

24 Commits

Author SHA1 Message Date
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
nikhiljindal a321edae03 Deleting duplicate code from federated-apiserver 2016-05-03 14:04:09 -07:00
Hongchao Deng a55a963640 add flags to enable etcd3 2016-04-28 09:48:16 +08:00
nikhiljindal e09e2699c2 Using genericapiserver.NewConfig() instead of initialising Config 2016-04-25 17:27:18 -07:00
Clayton Coleman 51e5cc2b6e Handle streaming serializers more consistently
Add tests to watch behavior in both protocols (http and websocket)
against all 3 media types. Adopt the
`application/vnd.kubernetes.protobuf;stream=watch` media type for the
content that comes back from a watch call so that it can be
distinguished from a Status result.
2016-04-22 11:07:24 -04:00
deads2k cdcda3cc3c make storage enablement, serialization, and location orthogonal 2016-04-21 08:18:55 -04:00
nikhiljindal 3a6ba8a6c2 Moving more logic to genericapiserver 2016-04-19 00:03:28 -07:00
Chao Xu ee39f26808 Client-gen: handle dotted package name 2016-04-14 10:04:58 -07:00
k8s-merge-robot d9470bd08a Merge pull request #23953 from nikhiljindal/u8sServer
Automatic merge from submit-queue

moving genericapiserver command line flags to genericapiserver

cc @kubernetes/sig-api-machinery
2016-04-13 23:15:24 -07:00
nikhiljindal 2e712473aa moving genericapiserver command line flags to genericapiserver 2016-04-13 13:28:18 -07:00
Clayton Coleman 8859f12c26 Implement a streaming serializer for watch
Changeover watch to use streaming serialization. Properly version the
watch objects. Implement simple framing for JSON and Protobuf (but not
YAML).
2016-04-11 11:22:05 -04:00
nikhiljindal 3801801edd Change the port for apiserver example 2016-03-12 00:12:53 -08:00
AdoHe d96c632ee7 restore ability to run against secured etcd 2016-03-11 11:21:16 -05:00
nikhiljindal 89d20d0ab1 Moving installing swagger spec to generic api server 2016-02-10 18:33:47 -08:00
nikhiljindal 872f1cd6ad Updating methods to return error rather than using glog.Fatalf 2016-02-03 16:00:45 -08:00
nikhiljindal 2f05e12334 Adding test for apiserver example 2016-02-02 15:42:29 -08:00