Wojciech Tyczynski
ba28dd9561
Long requests throttled for long time
2016-02-18 21:48:29 +01:00
Kris
8396df57e6
Never rate limit watches
2016-02-11 13:50:05 -08:00
k8s-merge-robot
7b5136ee73
Merge pull request #20623 from magicwang-cn/20136
...
Auto commit by PR queue bot
2016-02-09 01:11:28 -08:00
k8s-merge-robot
9de1b9b8c2
Merge pull request #20388 from mqliang/event-version
...
Auto commit by PR queue bot
2016-02-06 03:37:34 -08:00
Chao Xu
0d772a7a52
To be compatible with release 1.1, decode Status even if the APIVersion is not set.
2016-02-04 16:12:17 -08:00
magicwang-cn
2d701e8ac8
bug fix in unversion request
2016-02-04 11:07:00 +08:00
mqliang
1c9b12fe72
make eventType versioned correctly
2016-01-31 21:14:08 +08:00
Clayton Coleman
8692d260f8
Use Parameter codec in request.VersionedParams()
2016-01-30 14:14:20 -05:00
Clayton Coleman
38c7eded99
Prepare for content-type negotiation
...
Combine the fields that will be used for content transformation
(content-type, codec, and group version) into a single struct in client,
and then pass that struct into the rest client and request. Set the
content-type when sending requests to the server, and accept the content
type as primary.
Will form the foundation for content-negotiation via the client.
2016-01-26 17:44:30 -05:00
Clayton Coleman
efe88e0818
Update client library to react to changes in Decoding
2016-01-22 13:27:24 -05:00
Alex Mohr
d2d349bc84
Merge pull request #19334 from resouer/network
...
Networking should be used to hold network related pkgs
2016-01-21 10:26:13 -08:00
James DeFelice
75f487f7bf
AbsPath should be compatible with proxy-prefixes:
...
- replace Config.Prefix with .Host and .APIPath
- Request .path promoted to .pathPrefix, .baseURL holds required prefix
2016-01-20 00:31:58 +00: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
Clayton Coleman
6d4612c8d2
Remove redundant / complex client code
2015-12-22 14:29:15 -05:00
deads2k
9fda7f1812
update StatusDetails to handle Groups
2015-12-17 09:14:12 -05:00
k8s-merge-robot
414ebd2ddb
Merge pull request #17991 from krousey/errorstatus
...
Auto commit by PR queue bot
2015-12-14 20:18:19 -08:00
Kris
ca7c765f0a
Remove APIStatus from the client
...
Everything that used it also depended on pkg/api/errors. It was a
needless abstraction since it was always an *errors.StatusError.
2015-12-10 13:12:21 -08:00
Jay Vyas
76e6281168
Exponential backoff for request client, rebased. Updated license to
...
2015, cleaned more //[a-z] comments. Added in support for Environment
variable gaurds over the backcoff w/ default NoBackoff. Rebased.
2015-12-07 20:19:51 -05:00
k8s-merge-robot
c6b59353e1
Merge pull request #18022 from deads2k/gv-request
...
Auto commit by PR queue bot
2015-12-05 22:38:40 -08:00
k8s-merge-robot
c5924d20a5
Merge pull request #17817 from mqliang/eventtype
...
Auto commit by PR queue bot
2015-12-03 05:55:46 -08:00
deads2k
0fd17b7b2e
update client.Request for GroupVersion
2015-12-03 08:16:41 -05:00
mqliang
9ff765978a
add filedselector for Event
2015-12-01 23:02:48 +08:00
k8s-merge-robot
940c7fbbd5
Merge pull request #17823 from wojtek-t/use_versioned_params
...
Auto commit by PR queue bot
2015-12-01 03:21:44 -08:00
Wojciech Tyczynski
cdded4f011
Use VersionedParams in "extensions" client.
2015-12-01 10:18:55 +01:00
Wojciech Tyczynski
4e7fd55922
Handle selectors correctly in VersionedParams().
2015-11-30 20:56:16 +01:00
Hongchao Deng
0521481655
client request metrics should be registered only once
2015-11-27 10:10:08 -08:00
k8s-merge-robot
b61a8fbb8a
Merge pull request #16271 from jayunit100/hammer-backoff-metrics-part1
...
Auto commit by PR queue bot
2015-11-12 00:55:37 -08:00
k8s-merge-robot
c7d5f3cdca
Merge pull request #16881 from krousey/client_path
...
Auto commit by PR queue bot
2015-11-06 01:11:21 -08: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
jayvyas
072980af14
HTTP Client request metrics: consolidating + client->server endpoint label, cleanups
2015-11-05 18:12:22 -05:00
Kris
9e1afbceb0
Remove bad heuristic path manipulation
2015-11-05 14:42:36 -08: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
huangyuqi
b69b498235
use the defined constant variable
2015-11-02 15:32:53 +08:00
Daniel Smith
424afd4cfb
Merge pull request #15971 from jlowdermilk/client-http-content-type
...
Set Content-Type in headers of client http requests
2015-10-27 15:33:32 -07:00
Wojciech Tyczynski
4d117dff6f
Fix timeoutSeconds parameter
2015-10-27 15:36:54 +01:00
Wojciech Tyczynski
f4d75e0a0a
Support timeout in watch requests
2015-10-24 13:12:49 +02:00
Jeff Lowdermilk
583246a22f
Set Content-Type in client http request header when posting objects
2015-10-22 13:50:28 -07:00
k8s-merge-robot
130e6a7a4d
Merge pull request #15468 from feiskyer/volume-typo-error
...
Auto commit by PR queue bot
2015-10-15 05:08:33 -07:00
Chao Xu
cbb3deb182
run goimports
2015-10-12 13:31:45 -07:00
Chao Xu
50a2c4c643
grep-sed
2015-10-12 13:31:45 -07:00
feisky
8ad6b8f035
Fix typo error
2015-10-12 18:57:56 +08:00
Clayton Coleman
3f1b18fbba
Refactor exec to make attach useful without a client.Config
...
The current executor structure is too dependent on client.Request
and client.Config. In order to do an attach from the server, it needs
to be possible to create an Executor from crypto/tls#TLSConfig and to
bypassing having a client.Request.
Changes:
* remotecommand.spdyExecutor - handles upgrading a request to SPDY and getting a connection
* remotecommand.NewAttach / New - moved to exec / portforward / attach since they handle requests
* Remove request.Upgrade() - it's too coupled to SPDY, and can live with the spdyExecutor
* Add request.VersionedParams(runtime.Object, runtime.ObjectConvertor) to handle object -> query transform
2015-10-09 14:36:46 -04:00
eulerzgy
71b96422f4
set capital in some files
2015-09-30 14:46:20 +08:00
Kris
f4ad00d9ae
Moving Status object to a common package
2015-09-17 14:09:53 -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
Jerzy Szczepkowski
08594dab8c
Added ProxyGet method to services client.
...
Added ProxyGet method to services client.
2015-08-26 16:38:13 +02:00
Janet Kuo
44a7a52a94
Hide failed/succeeded pods in 'kubectl get pods' by default
2015-08-18 13:47:19 -07:00
Kris Rousey
7ba5b058cc
Moving client libs to unversioned dir
2015-08-18 10:03:19 -07:00