Jordan Liggitt
ea8669661a
Use versioned object when computing patch
2016-03-17 16:19:05 -04:00
Chao Xu
78fc311f1f
adding a apiserver log message when patch fails because a meaningful conflict
2016-02-22 17:10:53 -08:00
k8s-merge-robot
30c1263b81
Merge pull request #20376 from smarterclayton/rest_error
...
Auto commit by PR queue bot
2016-02-06 02:15:45 -08:00
harry
1032067ff9
Replace runtime reference by pkg
2016-02-01 21:06:44 +08:00
Clayton Coleman
6e0ad75a6e
Change the signature of resthandler.err for upcoming watch changes
...
Watch will need to be able to invoke scope.err, and it will not
have access to the go-restful req/res. Change to use the raw http
type now.
2016-01-30 18:00:43 -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
deads2k
e90c2bd7dc
make patch call update admission chain after applying the patch
2016-01-20 16:21:27 -05:00
Wojciech Tyczynski
58336829be
Switch to versioned ListOptions in server.
2015-12-21 14:23:37 +01:00
Brendan Burns
2efcccf981
Add a server side export facility
2015-12-16 15:01:13 -08:00
k8s-merge-robot
266ab4a796
Merge pull request #18487 from smarterclayton/guard_encode_decode
...
Auto commit by PR queue bot
2015-12-13 23:08:18 -08:00
k8s-merge-robot
c458cd7bb7
Merge pull request #18379 from deads2k/gv-newobject
...
Auto commit by PR queue bot
2015-12-13 13:33:16 -08:00
Jeff Lowdermilk
f6686ba3a4
Merge pull request #18290 from wojtek-t/fast_namespace_deletion
...
Support collection deletion in apiserver.
2015-12-11 13:34:56 -08:00
k8s-merge-robot
0bf11d89cf
Merge pull request #18277 from wojtek-t/better_traces
...
Auto commit by PR queue bot
2015-12-10 09:56:13 -08:00
Wojciech Tyczynski
f28bb68d8c
Support collection deletion in apiserver.
2015-12-10 09:46:25 +01:00
Clayton Coleman
1e21054134
Hide common codec methods under helpers
...
The pending codec -> conversion split changes the signature of
Encode and Decode to be more complicated. Create a stub helper
with the exact semantics of today and do the simple mechanical
refactor here to reduce the cost of that change.
2015-12-09 21:15:02 -05:00
deads2k
519b4e80d1
update NewObject for groupversionkind
2015-12-09 08:13:15 -05:00
k8s-merge-robot
ec1ba7438f
Merge pull request #17796 from deads2k/gv-object-typer
...
Auto commit by PR queue bot
2015-12-07 12:34:55 -08:00
deads2k
3f045cf168
udpate admission for API groups
2015-12-07 08:55:01 -05:00
deads2k
f764e0099c
Update ObjectTyper to GroupVersion
2015-12-07 08:35:05 -05:00
Wojciech Tyczynski
788218d7bb
Better traces for api calls.
2015-12-07 09:15:54 +01:00
Wojciech Tyczynski
0736d5c893
Better traces in list operations.
2015-12-03 09:16:37 +01:00
deads2k
a7dd09ec47
update requestScope to fully qualify kind and resource
2015-12-01 16:50:24 -05:00
deads2k
e0b7f52633
hack up queryToObject to continue to work as it used to
2015-11-25 12:14:06 -05:00
deads2k
68b0572974
internal versions
2015-11-25 12:14:06 -05:00
deads2k
6231404682
update decoder to use GroupVersion
2015-11-25 12:14:06 -05:00
Wojciech Tyczynski
bf13bef955
Use unversioned.ListOptions in API server.
2015-11-24 14:42:21 +01:00
k8s-merge-robot
06ef4b0a83
Merge pull request #17156 from feihujiang/moveListFunctionsFromRuntimeToMetaPackage
...
Auto commit by PR queue bot
2015-11-23 14:13:25 -08:00
feihujiang
ad79fa6e84
Move list functions from runtime to meta package
2015-11-20 09:20:55 +08:00
Wojciech Tyczynski
d7b098b0e9
Add DecodeParametersInto method to Codec.
2015-11-18 09:56:04 +01:00
Wojciech Tyczynski
9c53f301f1
Merge selectors with ListOptions.
2015-10-29 15:42:57 +01:00
Wojciech Tyczynski
aa30e38183
Pass resource version to storage List operation.
2015-10-27 10:03:58 +01:00
Wojciech Tyczynski
f4d75e0a0a
Support timeout in watch requests
2015-10-24 13:12:49 +02:00
Clayton Coleman
d4cdabf2fc
Connect should be passed a Responder interface
...
For connect handlers that need to respond with a structured error or
structured object, pass an interface that hides the details of writing
an object to the response (error or runtime.Object).
Example use case:
Connect handler that accepts a body input stream, which it streams to a
pod, and then returns a structured object with info about the pod it
just created.
2015-10-13 15:05:14 -04:00
deads2k
05e84fafbe
move HasConflicts to shareable location
2015-10-05 14:37:57 -04:00
deads2k
41e2a4c40f
make patch handle conflicts gracefully
2015-10-05 14:37:57 -04:00
Derek Parker
4745cc9d9a
apiserver: Fix handling patch requests with charset
...
Fixes #14872
2015-09-30 14:03:27 -07:00
Kris
f4ad00d9ae
Moving Status object to a common package
2015-09-17 14:09:53 -07:00
Brendan Burns
b196d0f84b
Add support for installing custom object APIs
2015-08-31 21:13:36 -07:00
Jordan Liggitt
b5e8f7aa41
Recover panics in finishRequest, write correct API response
2015-08-31 14:55:18 -04:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
Chao Xu
664d20c572
Add DecodeIntoWithSpecifiedVersionKind() to Decoder interface.
...
The function validate/default the body with the passed in apiVersion and Kind.
It's called in createHandler and UpdateResource
2015-08-03 15:30:00 -07:00
derekwaynecarr
f6fb72ec51
Admission control attributes has access to resource name
2015-06-23 13:54:55 -04:00
Jeff Lowdermilk
0c7fbacfb1
Merge pull request #10052 from derekwaynecarr/admission_subresources
...
Admission control exposes subresource
2015-06-22 13:11:58 -07:00
Clayton Coleman
debd42a07d
Cleaning up apiserver method signatures
...
A lot of the changes in apiserver could have been represented more
cleanly - this returns the signatures to their older behavior (and
unbreaks OpenShift).
2015-06-18 15:13:41 -04:00
derekwaynecarr
fce7adf3e7
Admission control exposes subresource
2015-06-18 15:00:46 -04:00
Brendan Burns
b68ddbaf75
Don't pretty-print by default. Saves an allocation (or more) and a copy.
2015-06-08 21:31:58 -07:00
nikhiljindal
7cc50448e3
Updating StatusDetails.ID to Name in internal API
2015-06-05 07:17:02 -07:00
Prashanth Balasubramanian
448867073d
Pipe minRequestTimeout as an arg to the apiserver
2015-06-03 08:44:14 -07:00
Cesar Wong
328b1d0817
Add admission control to the Connect method in the API Server
...
The resource passed to admission control is a ConnectRequest object
which includes additional information about the current request.
2015-05-21 13:54:45 -04:00
Cesar Wong
68ad63b5e2
Add operation checking to admission control handlers
...
Adds a new method to the handler interface that returns true only if the
admission control handler handles that operation.
2015-05-21 13:51:43 -04:00