k8s-merge-robot
e543bd6452
Merge pull request #26007 from smarterclayton/watch_opt
...
Automatic merge from submit-queue
Additional optimizations to the encode/decode paths
Builds on top of #25983 with a number of other optimizations.
2016-05-28 06:27:00 -07:00
Jordan Liggitt
29252acd1a
Change rest storage Update interface to retrieve updated object
...
Add OldObject to admission attributes
Update resthandler Patch/Update admission plumbing
2016-05-23 21:09:26 -04:00
Clayton Coleman
c6961d6fd6
Remove runtime.Typer, reduce to ObjectKinds(1) (3)
...
Remove the unnecessary variants, which avoids allocations in several
core paths.
2016-05-21 23:55:42 -04:00
k8s-merge-robot
4f09f51486
Merge pull request #24800 from thockin/validation_pt8-3
...
Automatic merge from submit-queue
Make name validators return string slices
Part of the larger validation PR, broken out for easier review and merge. Builds on previous PRs in the series.
2016-05-19 02:15:27 -07:00
Tim Hockin
152c86ab06
Make name validators return string slices
2016-05-18 00:48:01 -07:00
k8s-merge-robot
6376b52b90
Merge pull request #25271 from euank/fix-missing-resttest-call
...
Automatic merge from submit-queue
test: Call forgotten resttest test
PR #3789 introduced this test, but it was never called.
This test was created, but never called.
Written, but never run.
It has neither flaked nor asserted. At its inception it was deserted.
My change gives this test a chance, to at long last finally pass.
The resttest stuff is a bit complicated and I'm not totally sure I put it in the right place @smarterclayton, want to double check this change makes sense?
2016-05-16 23:49:39 -07:00
Euan Kemp
713853d3a8
test: Call forgotten resttest test
...
PR #3789 introduced this test, but it was never called.
2016-05-11 10:55:07 -07:00
Jordan Liggitt
6c323a4f72
Remove name generation from thirdpartyresource
2016-05-09 09:27:54 -04:00
Daniel Smith
4c539bf082
Merge pull request #23490 from wojtek-t/remove_set_from_storage_interface
...
Remove Set() from storage.Interface.
2016-04-13 14:22:05 -07:00
goltermann
696423e044
Vet fixes, mostly pass lock by value errors.
2016-04-06 11:27:40 -07:00
Wojciech Tyczynski
53f433f019
Remove Set() from storage.Interface.
2016-04-04 17:54:18 +02:00
Chao Xu
31b425b3a1
add delete precondition
2016-03-25 11:21:39 -07:00
goltermann
34d4eaea08
Fixing several (but not all) go vet errors. Most are around string formatting, or unreachable code.
2016-03-22 17:26:50 -07:00
Wojciech Tyczynski
89585237cd
Rename RawJSON to Raw in runtime.RawExtension and add ContentType & ContentEncoding.
2016-03-18 12:35:27 +01:00
Chao Xu
8566056d18
revert 20202
2016-02-28 19:03:22 -08:00
Fabio Yeon
375b4ca8d6
Revert "Revert 20202. Use other measures to prevent race in test-cmd.sh"
2016-02-26 19:25:08 -08:00
Chao Xu
4342a8c4f0
revert 20202
2016-02-19 11:37:54 -08:00
laushinka
7ef585be22
Spelling fixes inspired by github.com/client9/misspell
2016-02-18 06:58:05 +07:00
Jan Chaloupka
4389b3f0d6
Rewritte util.* -> wait.* wherever reasonable
2016-02-07 12:02:20 +01:00
k8s-merge-robot
5914deeac8
Merge pull request #19380 from brendandburns/apiresource
...
Auto commit by PR queue bot
2016-02-03 00:49:47 -08:00
Chao Xu
fdf6a0f61c
skip update when deleting with grace-period=0
2016-02-02 10:53:25 -08:00
k8s-merge-robot
9d9864486b
Merge pull request #19342 from caesarxuchao/remove-resourceversion-check
...
Auto commit by PR queue bot
2016-01-31 18:11:47 -08:00
Chao Xu
ebcff4b5e4
fix the namespaceScoped of cachers
2016-01-28 16:24:54 -08:00
Chao Xu
a248d1117b
remove ResourceVersion validation in client
2016-01-22 10:14:39 -08:00
Brendan Burns
79533385cf
Add kind to APIResource
2016-01-07 22:27:34 -08:00
Wojciech Tyczynski
58336829be
Switch to versioned ListOptions in server.
2015-12-21 14:23:37 +01:00
deads2k
9fda7f1812
update StatusDetails to handle Groups
2015-12-17 09:14:12 -05:00
Brendan Burns
2efcccf981
Add a server side export facility
2015-12-16 15:01:13 -08:00
Clayton Coleman
8f203a28f1
Change runtime.Object signature
2015-12-15 13:36:25 -05: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
Tim Hockin
872faffdac
Internal errors are internal
2015-12-10 11:48:19 -08:00
Tim Hockin
7fb8f60735
Shorten names for better reading
2015-12-10 11:48:19 -08:00
Tim Hockin
87a35047dd
Move FieldPath and errors to a sub-package
...
This makes the naming and reading a lot simpler.
2015-12-10 11:48:16 -08:00
Wojciech Tyczynski
f28bb68d8c
Support collection deletion in apiserver.
2015-12-10 09:46:25 +01:00
deads2k
f764e0099c
Update ObjectTyper to GroupVersion
2015-12-07 08:35:05 -05:00
Tim Hockin
e6df0b1a24
Convert validation to use FieldPath
...
Before this change we have a mish-mash of ways to pass field names around for
error generation. Sometimes string fieldnames, sometimes .Prefix(), sometimes
neither, often wrong names or not indexed when it should be.
Instead of that mess, this is part one of a couple of commits that will make it
more strongly typed and hopefully encourage correct behavior. At least you
will have to think about field names, which is better than nothing.
It turned out to be really hard to do this incrementally.
2015-12-03 08:19:44 -08:00
k8s-merge-robot
431c67710b
Merge pull request #17247 from thockin/airplane_validation_pt3
...
Auto commit by PR queue bot
2015-11-24 18:37:09 -08:00
Wojciech Tyczynski
bf13bef955
Use unversioned.ListOptions in API server.
2015-11-24 14:42:21 +01:00
Tim Hockin
682f2a5a79
Stronger typing for validation ErrorList
2015-11-23 10:01:43 -08:00
Tim Hockin
48b49a5cae
s/ValidationErrorList/ErrorList/
2015-11-22 20:13:20 -08:00
Tim Hockin
0ff66da346
Move fielderrors into validation
2015-11-22 20:12:20 -08:00
Timothy St. Clair
02851dd1b7
Removal of fakeClient and shift to storage.Interface for
...
all registry tests.
2015-11-19 10:34:30 -06:00
Tim Hockin
35ab5c6234
Add a REST hook for post-validation canonicalize
...
This is a simple hook that only Endpoints uses for now.
2015-11-12 21:13:16 -08:00
feihujiang
3603b14977
Move service strategy to registry/service package
2015-11-02 19:56:03 +08: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
Jordan Liggitt
63fb6c07a5
Validate names in BeforeCreate
2015-10-21 14:11:41 -04:00
k8s-merge-robot
8c753c84eb
Merge pull request #15191 from caesarxuchao/validate-UID
...
Auto commit by PR queue bot
2015-10-15 04:20:24 -07:00
Chao Xu
be0754750f
add common fields validation before updaing a resource; make the repair of malformed update request flippable by a flag.
2015-10-13 16:28:32 -07: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