Commit Graph

40 Commits

Author SHA1 Message Date
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
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
Timothy St. Clair 04ef3fdb57 In preparation for new storage backends renaming generic registry store 2016-04-26 08:32:13 -05: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
Brian Grant f58537d494 Merge pull request #21535 from AdoHe/restore_secure_etcd
restore ability to run against secured etcd
2016-03-11 12:14:06 -08:00
AdoHe d96c632ee7 restore ability to run against secured etcd 2016-03-11 11:21:16 -05:00
David McMahon 74811d373b Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08: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
Chao Xu 010ed17e7f fix the namespaceScoped of cachers 2016-01-28 16:24:54 -08:00
nikhiljindal bb03344403 Adding an example apiserver 2016-01-22 11:52:16 -08:00