Commit Graph

88 Commits

Author SHA1 Message Date
feihujiang
ad10ca1da8 Add type for StatusReason constants 2015-12-03 19:22:03 +08:00
k8s-merge-robot
ee71ddcefe Merge pull request #17956 from deads2k/gv-requestscope
Auto commit by PR queue bot
2015-12-02 08:00:33 -08:00
deads2k
a7dd09ec47 update requestScope to fully qualify kind and resource 2015-12-01 16:50:24 -05:00
k8s-merge-robot
55f5e48047 Merge pull request #16628 from caesarxuchao/change-error-type
Auto commit by PR queue bot
2015-11-30 17:21:52 -08:00
Clayton Coleman
1d592e4c28 Unversioned types should not use ambiguous go-int
All external types that are not int64 are now marked as int32,
including
IntOrString. Prober is now int32 (43 years should be enough of an initial
probe time for anyone).

Did not change the metadata fields for now.
2015-11-26 11:45:25 -05:00
deads2k
8679925847 update RESTMapping API to be properly typed 2015-11-25 14:02:37 -05:00
Chao Xu
a4700707b3 change the "too old resource version" error from InternalError to 410 Gone. 2015-11-25 10:27:03 -08:00
deads2k
ed95a6d77f update scheme to use GroupVersion 2015-11-25 12:15:48 -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
deads2k
94ad6aa0c4 make DefaultRESTMapper use GroupVersion 2015-11-24 14:17:37 -05:00
Wojciech Tyczynski
f09e8d3eb0 ref 2015-11-23 09:56:25 +01:00
Wojciech Tyczynski
77fd936b5f Create unversioned.ListOptions object. 2015-11-23 09:55:33 +01:00
k8s-merge-robot
759df1ef6e Merge pull request #17569 from quinton-hoole/2015-11-19-fix-node-zone-labels
Auto commit by PR queue bot
2015-11-21 16:33:11 -08:00
Quinton Hoole
bec4167525 Make zone and region node labels conformant.
Fixes #17506
2015-11-19 16:35:58 -08:00
Wojciech Tyczynski
975871e0a0 JSON marshaling/unmarshaling of label Selector 2015-11-19 16:44:48 +01:00
deads2k
303bcad398 use groupversion in RESTMapping 2015-11-16 09:22:11 -05:00
deads2k
bf983e942c use GroupVersion in APIGroupVersion for api installer 2015-11-16 07:42:00 -05:00
David Eads
486103d887 Revert "use GroupVersion in APIGroupVersion for api installer" 2015-11-13 12:55:08 -05:00
deads2k
3c725f17ea use GroupVersion in APIGroupVersion for api installer 2015-11-13 09:00:04 -05:00
k8s-merge-robot
e80dd6689f Merge pull request #16866 from justinsb/zone_labels_on_nodes
Auto commit by PR queue bot
2015-11-12 07:25:37 -08:00
k8s-merge-robot
354c6f3b12 Merge pull request #16834 from caesarxuchao/GroupVersion-Object
Auto commit by PR queue bot
2015-11-07 03:43:30 -08:00
Chao Xu
2f012ae036 run gen-swagger-docs 2015-11-05 15:49:52 -08:00
Chao Xu
15e6ca5ac5 rename to GroupVersion and rename the one in type.go to GroupVersionForDiscovery 2015-11-05 14:52:58 -08:00
Chao Xu
fb360bca98 add comments 2015-11-05 14:15:01 -08:00
Chao Xu
6419924a5e add ugorji unmarshaller and address comments 2015-11-05 13:46:44 -08:00
Justin Santa Barbara
b2c2d617cf Label nodes with Zone information, if available
This lays the groundwork for simple multizone capabilities.

In a cloud environment, nodes are typically created by the kubelet
registering with the API server.  When creating a new node, we now query
the cloudprovider to see if it can provide Zone information, and if so
we add some well-known labels to the Node we are creating.
2015-11-05 14:35:05 -05:00
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