Commit Graph

161 Commits (82a5cab1cea90576ba062fd03f203470e6089a66)

Author SHA1 Message Date
Chao Xu 9d52b0fc08 add GroupVersion struct 2015-11-04 18:38:26 -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 3bc4abb9aa Add TypeMeta to discovery response objects 2015-10-27 10:27:13 -04:00
Chao Xu 7554331185 update swagger 2015-10-12 13:34:07 -07:00
Chao Xu 4c9b88a3c2 combine types.go and unversioned.go 2015-10-12 13:34:07 -07:00
Chao Xu d1d10f8361 rename api to unversioned 2015-10-12 13:31:45 -07:00
gmarek a5de60f985 Fix swagger docs 2015-09-19 20:16:45 +02:00
Daniel Martí 586cb9126a Move pkg/util.Time to pkg/api/unversioned.Time
Along with our time.Duration wrapper, as suggested by @lavalamp.
2015-09-17 17:51:27 -07:00
Daniel Martí 21c7dd42de Add pkg/api/unversioned.Duration type
Similar to pkg/util.Time.
2015-09-17 16:25:46 -07:00
Kris c5f22a025a Regenerating everything 2015-09-17 14:09:53 -07:00
Kris f4ad00d9ae Moving Status object to a common package 2015-09-17 14:09:53 -07:00