goltermann
32d569d6c7
Fixing all the "composite literal uses unkeyed fields" Vet errors.
2016-03-25 15:25:09 -07: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
k8s-merge-robot
782ba437f1
Merge pull request #23003 from deads2k/no-proxy-cidr
...
Auto commit by PR queue bot
2016-03-17 14:16:11 -07:00
deads2k
ab03317d96
support CIDRs in NO_PROXY
2016-03-16 16:22:54 -04:00
Timothy St. Clair
d3da93c174
Renaming api/errors/etcd to api/errors/storage as it no longer
...
has any etcd specific dependencies. Reference issue #17546
2016-03-15 20:23:47 -05:00
Jordan Liggitt
a1c2267f20
Decrease parallelism in deletecollection test, lengthen test etcd certs
2016-03-12 18:30:12 -05:00
Chao Xu
a3a6130f44
ignore NotFound error in etcd
2016-03-03 13:26:40 -08:00
Chao Xu
8566056d18
revert 20202
2016-02-28 19:03:22 -08:00
Wojciech Tyczynski
506899008f
Parallelization of namespace deletion
2016-02-25 16:33:25 +01:00
Wojciech Tyczynski
4eadc5e97b
Introduce RESTOptions to configure per-resource storage
2016-02-22 16:28:28 +01:00
Jordan Liggitt
d575a954fa
Tolerate individual NotFound errors in DeleteCollection
2016-02-17 00:06:44 -05:00
Wojciech Tyczynski
2e97793840
Don't store no-op updates in etcd.
2016-02-12 09:23:28 +01:00
Chao Xu
fdf6a0f61c
skip update when deleting with grace-period=0
2016-02-02 10:53:25 -08:00
k8s-merge-robot
c5260c8c71
Merge pull request #20145 from mqliang/quorum-read
...
Auto commit by PR queue bot
2016-02-02 05:50:41 -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
mqliang
b0e06c14e5
add a knob to enable quorum read
2016-01-30 20:32:12 +08:00
Chao Xu
ebcff4b5e4
fix the namespaceScoped of cachers
2016-01-28 16:24:54 -08:00
Chao Xu
db9b5c97fb
fix e2e
2016-01-22 10:31:03 -08:00
Chao Xu
a248d1117b
remove ResourceVersion validation in client
2016-01-22 10:14:39 -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
Wojciech Tyczynski
8dc83547b0
Close watch in generic etcd_test
2015-12-28 11:43:20 +01:00
Wojciech Tyczynski
e108a32b08
Merge pull request #18655 from wojtek-t/versioned_list_options_in_server
...
Switch to versioned ListOptions in server.
2015-12-22 10:57:09 +01:00
Wojciech Tyczynski
2b8854ba28
Close watchers in tests
2015-12-22 09:54:05 +01: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
a60069b300
Add a server side export facility
2015-12-16 19:42:08 -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
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
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
Wojciech Tyczynski
793da62c7f
Change resourceVersion to string in storage.Interface
2015-12-07 09:22:59 +01:00
Wojciech Tyczynski
788218d7bb
Better traces for api calls.
2015-12-07 09:15:54 +01:00
k8s-merge-robot
8e496e3fa3
Merge pull request #18015 from wojtek-t/list_traces
...
Auto commit by PR queue bot
2015-12-05 22:10:01 -08:00
k8s-merge-robot
c849825d18
Merge pull request #16400 from caesarxuchao/fix-proxy-content-length
...
Auto commit by PR queue bot
2015-12-03 15:56:03 -08:00
Wojciech Tyczynski
0736d5c893
Better traces in list operations.
2015-12-03 09:16:37 +01:00
Wojciech Tyczynski
bf13bef955
Use unversioned.ListOptions in API server.
2015-11-24 14:42:21 +01: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
Chao Xu
32f2ec71a8
Based on @tiran's patch: copy the request ContentLength and TransferEncoding field in proxy
...
@liggitt: Update proxy content-length tests; Copy content-length in generic rest proxy.
2015-11-20 09:57:47 -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
k8s-merge-robot
961a02a602
Merge pull request #17204 from thockin/airplane-rest-canonicalize
...
Auto commit by PR queue bot
2015-11-13 18:17:18 -08:00
Wojciech Tyczynski
a5a8717539
Pass versioner to cacher.
2015-11-13 08:35:28 +01: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
Wojciech Tyczynski
3df5d1dbc3
Move storage-related dirs under pkg/storage.
2015-11-12 19:49:32 +01:00
k8s-merge-robot
6b7115067d
Merge pull request #16807 from smarterclayton/server_backpressure_on_etcd_down
...
Auto commit by PR queue bot
2015-11-05 21:19:30 -08:00
Timothy St. Clair
f6f2f41ab3
Removal of fakeClient from registry/generic/etcd/etcd_test.go in leiu of
...
NewEtcdTestClientServer
2015-11-05 08:28:58 -06:00
Clayton Coleman
3da15535b6
Provide backpressure to clients when etcd goes down
...
When etcd is down today we don't specifically handle the error involved,
which means clients get a generic 500 error. This commit adds a formal
error type internally for both WatchExpired and EtcdUnreachable, and
then converts them to api/errors before returning to the client. It also
upgrades the client to retry on any 429 or 5xx error that has a
Retry-After header, instead of just 429.
In combination, this allows the apiserver to exert backpressure on
controllers that are hotlooping. Picked 2 seconds by default, but we
could potentially ramp that up even further in a future iteration.
2015-11-04 16:05:12 -05:00
Jordan Liggitt
b3157d1445
Ensure HPA has valid resource/name/subresource, validate path segments
2015-11-03 14:46:17 -05:00
feihujiang
726def04d5
Make rootscoped resource no namespace selectable field
2015-10-31 10:52:21 +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
k8s-merge-robot
33dabe00a8
Merge pull request #15766 from feihujiang/supportNamespaceSelectorInAllNamespacesEndpoint
...
Auto commit by PR queue bot
2015-10-24 17:08:34 -07:00
feihujiang
501c76cebb
Support namespace selector in all namespaces endpoint
2015-10-23 14:14:38 +08: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
Dawn Chen
0901e5050d
Merge pull request #15371 from timothysc/etcd-contexts
...
New etcd client modifications part 1 (context support)
2015-10-12 16:04:13 -07:00
Dawn Chen
782102d437
Merge pull request #15224 from liggitt/proxy_https
...
Allow specifying scheme when proxying
2015-10-12 14:39:21 -07:00
Jordan Liggitt
1043126135
Refactor SSH tunneling, fix proxy transport TLS/Dial extraction
2015-10-12 11:17:01 -04:00
Jordan Liggitt
826459e51e
Allow specifying scheme when proxying
2015-10-12 11:16:53 -04:00
Timothy St. Clair
2a2a2d79ff
New etcd client modifications part 1 (context support)
...
This commit plumbs contexts which are needed for the new client.
2015-10-12 08:45:49 -05:00
feihujiang
8781fc73c1
Server should return error status when retrive error status from other location
2015-10-10 05:26:15 +08:00
Filip Grzadkowski
c0532a432a
Revert "Allow specifying scheme when proxying"
2015-10-07 13:02:35 +02:00
Jordan Liggitt
b9ba3bd7c2
Allow specifying scheme when proxying
2015-10-05 22:12:10 -04:00
Jordan Liggitt
36a721e8b7
Honor InsecureSkipVerify flag
2015-10-02 02:26:04 -04:00
Kris
f4ad00d9ae
Moving Status object to a common package
2015-09-17 14:09:53 -07:00
k8s-merge-robot
22f698f5b0
Merge pull request #13953 from liguangbo/change_iff_to_if_and_only_if
...
Auto commit by PR queue bot
2015-09-16 08:35:20 -07:00
liguangbo
4df68f03a3
change iff to if and only if to improve annotation readability
2015-09-16 08:29:36 +00:00
Clayton Coleman
f63fe9c52e
List/Watch on field=metadata.name= across namespaces is broken
...
MatchSingle assumes that namespace is set. That is not correct.
2015-09-14 20:54:31 -04:00
k8s-merge-robot
647288cde1
Merge pull request #13734 from wojtek-t/filter_in_storage
...
Auto commit by PR queue bot
2015-09-14 17:25:40 -07:00
tummychow
78ce5da988
Move util.StringSet into its own package
...
A lot of packages use StringSet, but they don't use anything else from
the util package. Moving StringSet into another package will shrink
their dependency trees significantly.
2015-09-10 12:04:15 -07:00
Wojciech Tyczynski
ed7d6ebd71
Filter List in Storage level to avoid additional copies.
2015-09-10 09:49:50 +02:00
Chao Xu
9fc79e9d99
refactor testapi and test scripts to prepare for multiple API groups.
2015-09-04 18:01:32 -07:00
Clayton Coleman
02dbb95447
Add TerminationGracePeriodSeconds to API
...
Set defaulting for pod spec
2015-08-20 11:03:38 -04:00
Robert Bailey
08e6a43c1d
Revert "Merge pull request #9165 from smarterclayton/graceful"
...
This reverts commit 4f856b595d
, reversing
changes made to d78525a83b
.
Conflicts:
pkg/kubelet/status_manager.go
2015-08-18 17:34:49 -07:00
Clayton Coleman
89f1f3b1b8
Alter graceful deletion to not use TTL
...
Avoid TTL by deleting pods immediately when they aren't
scheduled, and letting the Kubelet delete them otherwise.
Ensure the Kubelet uses pod.Spec.TerminationGracePeriodSeconds
when no pod.DeletionGracePeriodSeconds is available.
2015-08-18 09:08:43 -04:00
Wojciech Tyczynski
2ced08358f
Remove unused registry infrastructure
2015-08-12 11:23:10 +02:00
Veres Lajos
9f77e49109
typofix - https://github.com/vlajos/misspell_fixer
2015-08-08 22:31:48 +01:00
Mike Danese
fe6b15ba2f
rewrite all links to issues to k8s links
2015-08-05 21:11:11 -07:00
Mike Danese
17defc7383
run gofmt on everything we touched
2015-08-05 17:52:56 -07:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
Wojciech Tyczynski
3cbbe72f9f
Move etcd storage to pkg/storage/etcd
2015-07-30 15:42:06 +02:00
Wojciech Tyczynski
99d6b0e9f4
Rename storage interfaces
2015-07-30 10:34:57 +02:00
Wojciech Tyczynski
d17985f1ad
Move StorageInterface to pkg/storage.
2015-07-30 09:32:04 +02:00
Mike Danese
85781b674d
Merge pull request #11968 from brendandburns/flow
...
Optionally limit flow on all upgraded proxy connections
2015-07-29 16:00:43 -07:00
Brendan Burns
99b02bfe73
Add optional throttling to the proxy/exec/attach methods
2015-07-29 13:51:20 -07:00
Wojciech Tyczynski
7ce51db40d
Rename StorageInterface methods
2015-07-29 08:02:13 +02:00
Wojciech Tyczynski
9d943df397
Private EtcdHelper
2015-07-27 09:20:13 +02:00
Zach Loafman
9db58ff2b2
Merge pull request #10632 from nikhiljindal/revert-etcderrors
...
Revert "Merge pull request #10246 from nikhiljindal"
2015-07-01 13:06:18 -07:00
nikhiljindal
d82d5d11a7
Revert "Merge pull request #10246 from nikhiljindal"
...
This reverts commit a902a2f014
, reversing
changes made to 7df8d76a93
.
2015-07-01 11:07:18 -07:00
Jeff Lowdermilk
f0a36b0afd
Make UpgradeAwareProxyHandler use transport.Dial if provided
...
This change is required for the handler to work with sshtunnels.
Without it, `kubectl exec` and `kubectl port-forward` are broken
when an ssh proxy is used (see #9292 ). I manually verified this
fixes that issue, e2e test coming shortly.
2015-07-01 10:56:05 -07:00
nikhiljindal
4b7f7ce535
Dont return raw etcd errors
2015-06-29 16:18:46 -07:00
nikhiljindal
221ae4d63b
Allow update without resource version
2015-06-23 00:16:08 -07:00
Saad Ali
b25de6e273
Merge pull request #9916 from caesarxuchao/streamer
...
remove string "v1beta1" from streamer_test.go
2015-06-17 11:33:34 -07:00
Chao Xu
271a63f486
remove string "v1beta1" from streamer_test.go
2015-06-16 17:10:58 -07:00
jhadvig
ad36f5d2f1
Making error msg for updating resource version more clear
2015-06-15 17:05:08 +02:00