deads2k
d82f98c9b3
remove non-generic options from genericapiserver.Config
2016-11-03 11:48:33 -04:00
deads2k
4c12c3b130
abstract out discovery IP determination
2016-11-03 11:45:51 -04:00
Dr. Stefan Schimanski
cca05af615
Move swagger+openapi setup to routes and decouple from run
2016-10-22 13:42:22 +02:00
deads2k
9578523180
move proxytransport config out of the genericapiserver
2016-10-20 11:23:53 -04:00
Dr. Stefan Schimanski
08d4fa5c4f
Turn APIGroupPrefix into a constant
2016-10-19 11:52:15 +02:00
deads2k
5a9b16d40a
make version an explicit choice so zero config and customized work
2016-10-17 16:10:07 -04:00
deads2k
7412be4465
default serializer
2016-10-14 11:27:32 -04:00
deads2k
fbd5032da2
split genericapiserver configuration apart so that you can run without flag options
2016-10-13 13:09:53 -04:00
deads2k
6406aacb59
remove legacy API prefix from generic
2016-10-12 15:32:27 -04:00
deads2k
406c0a36ae
cleanup cruft from API server structs
2016-10-11 10:56:05 -04:00
Dr. Stefan Schimanski
68cee1d9ac
Make genericapiserver handler chain customizable
2016-10-05 10:32:36 -04:00
Dr. Stefan Schimanski
8391a19b57
Decouple defaulting from genericapiserver and master
2016-09-28 23:16:09 +02:00
Dr. Stefan Schimanski
bda1c76f39
Simplify genericapiserver tests
2016-09-28 17:25:43 +02:00
Dr. Stefan Schimanski
c727e27602
Reduce genericapiserver api surface
2016-09-22 13:43:32 +02:00
deads2k
561f8d75a5
move core resource registry packages
2016-09-21 10:11:50 -04:00
deads2k
7d1f13d3e0
add GenericAPIServer posthooks for initialization
2016-09-19 14:58:27 -04:00
Dr. Stefan Schimanski
7f78661d0b
Cleanup non-rest apiserver handlers
...
- rename MuxHelper -> PathRecorderMux
- move non-rest handlers into routes packages within genericapiserver and
`pkg/routes` (those from master)
- move ui and logs handlers out of genericapiserver (they are
not generic)
- make version handler configurable (`config.EnableVersion`)
2016-09-15 13:22:45 +02:00
Timothy St. Clair
9f3841b452
Revert "Revert "Enable v3 Client as the default on UTs""
...
This reverts commit 9dcef2e3cd
.
2016-09-14 07:27:21 -05:00
deads2k
b0d770ad7b
refactor genericapiserver new to combine initialization
2016-09-08 08:57:10 -04:00
deads2k
554ff48da2
privatize, document, and scrub GenericAPIServer
2016-08-30 09:53:33 -04:00
deads2k
b1ebeffeb3
remove unnecessary fields from generic apiserver
2016-08-30 09:53:33 -04:00
Daniel Smith
9dcef2e3cd
Revert "Enable v3 Client as the default on UTs"
2016-08-24 13:16:40 -07:00
Timothy St. Clair
49b7ebd791
Switch UT default settings to leverage etcd3.v3client
2016-08-22 22:17:55 -05:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
zhouhaibing089
5923fd352e
followup to add http server close method
2016-05-05 12:04:41 +08:00
Clayton Coleman
3111985564
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
6670b73b18
make storage enablement, serialization, and location orthogonal
2016-04-21 08:18:55 -04:00
Clayton Coleman
3474911736
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
deads2k
e8fb35d4d8
refactor resource overrides as positive logic interface
2016-03-28 09:24:49 -04:00
nikhiljindal
1cccfc7074
Disabling swagger ui by default. Adding a flag to enable it
2016-03-23 13:19:22 -07:00
nikhiljindal
20ce4aed0e
Adding hostname to groups discovery information
2016-02-18 11:58:11 -08:00
nikhiljindal
c7beb9078c
Updating methods to return error rather than using glog.Fatalf
2016-02-03 16:00:45 -08:00
nikhiljindal
2aa28c6553
Adding test for apiserver example
2016-02-02 15:42:29 -08:00
Clayton Coleman
4d127dc969
Initialize API servers with negotiated serializers
...
Pass down into the server initialization the necessary interface for
handling client/server content type negotiation. Add integration tests
for the negotiation.
2016-01-22 01:10:22 -05:00
Clayton Coleman
c1d932e44a
Switch API objects to not register per version codecs
...
Remove Codec from versionInterfaces in meta (RESTMapper is now agnostic
to codec and serialization). Register api/latest.Codecs as the codec
factory and use latest.Codecs.LegacyCodec(version) as an equvialent to
the previous codec.
2016-01-22 01:10:21 -05:00
Clayton Coleman
125ef6fbc8
Support content-type negotiation in the API server
...
A NegotiatedSerializer is passed into the API installer (and
ParameterCodec, which abstracts conversion of query params) that can be
used to negotiate client/server request/response serialization. All
error paths are now negotiation aware, and are at least minimally
version aware.
Watch is specially coded to only allow application/json - a follow up
change will convert it to use negotiation.
Ensure the swagger scheme will include supported serializations - this
now includes application/yaml as a negotiated option.
2016-01-22 00:12:50 -05:00
nikhiljindal
2ad642d370
Merge registered and latest and move to apimachinery
2016-01-21 14:42:21 -08:00
Harry Zhang
936a11e775
Use networking to hold network related pkgs
...
Change names of unclear methods
Use net as pkg name for short
2016-01-15 13:46:16 +08:00
David Oppenheimer
8ac484793d
Comment out calls to httptest.Server.Close() to work around
...
https://github.com/golang/go/issues/12262 . See #19254 for
more details. This change should be reverted when we upgrade
to Go 1.6.
2016-01-11 23:02:11 -08:00
nikhiljindal
87ce093c77
Moving API registration logic to generic api server
2015-12-30 14:22:14 -08:00
nikhiljindal
2d952aaa87
Extracting APIServer machinery code into a library
2015-12-16 13:54:23 -08:00