Daniel Martí
5505706891
Properly close tmp files in unversioned
...
If not, using `go test -count=n` would make them pile up and ultimately
get to the limit of open files:
2015/12/05 12:43:56 http: Accept error: accept tcp 127.0.0.1:39768: accept4: too many open files; retrying in 5ms
2015/12/05 12:43:56 http: Accept error: accept tcp 127.0.0.1:46606: accept4: too many open files; retrying in 5ms
2015/12/05 12:43:56 http: Accept error: accept tcp 127.0.0.1:46606: accept4: too many open files; retrying in 10ms
2015/12/05 12:43:56 http: Accept error: accept tcp 127.0.0.1:46606: accept4: too many open files; retrying in 20ms
Steps to reproduce (no longer fails):
godep go test -short -run '^$' -o test .
./test -test.run '^TestDoRequestNewWayFile$' -test.count 100
Note that this might not fail if your `ulimit -n` is not low enough.
2016-01-06 12:55:42 +01:00
Chao Xu
f51da22bcf
regenerate the typed clients
2016-01-05 16:20:46 -08:00
k8s-merge-robot
267687932f
Merge pull request #17916 from justinsb/multizone_volumes_aws
...
Auto commit by PR queue bot
2016-01-01 18:59:30 -08:00
Wojciech Tyczynski
5abdc2e944
Updage auto-generated files
2016-01-01 11:47:29 +01:00
Justin Santa Barbara
f9a6ac077e
Ubernetes Lite: Volumes can dictate zone scheduling
...
For AWS EBS, a volume can only be attached to a node in the same AZ.
The scheduler must therefore detect if a volume is being attached to a
pod, and ensure that the pod is scheduled on a node in the same AZ as
the volume.
So that the scheduler need not query the cloud provider every time, and
to support decoupled operation (e.g. bare metal) we tag the volume with
our placement labels. This is done automatically by means of an
admission controller on AWS when a PersistentVolume is created backed by
an EBS volume.
Support for tagging GCE PVs will follow.
Pods that specify a volume directly (i.e. without using a
PersistentVolumeClaim) will not currently be scheduled correctly (i.e.
they will be scheduled without zone-awareness).
2015-12-31 12:27:01 -05:00
k8s-merge-robot
500493a3ac
Merge pull request #18925 from caesarxuchao/refactor-registration
...
Auto commit by PR queue bot
2015-12-24 15:19:36 -08:00
k8s-merge-robot
21c01c05e3
Merge pull request #18902 from deads2k/gv-partial
...
Auto commit by PR queue bot
2015-12-24 01:42:59 -08:00
Chao Xu
2b5b708b70
Refactor the API registration and installation
2015-12-23 22:44:25 -08:00
k8s-merge-robot
be235e8754
Merge pull request #18940 from smarterclayton/nil_body
...
Auto commit by PR queue bot
2015-12-23 18:02:03 -08:00
Mike Danese
da8b85e5c7
Merge pull request #18858 from jayunit100/overlogging-rclient
...
Minimize log level for request backoffs
2015-12-22 14:08:06 -08:00
Clayton Coleman
6d4612c8d2
Remove redundant / complex client code
2015-12-22 14:29:15 -05:00
jay vyas
4891d827ac
Delete extra logs, especially to prevent kubelet which makes many clients, from overlogging.
2015-12-22 10:38:24 -05:00
deads2k
20f9c2c545
find partial resource matches
2015-12-21 09:26:06 -05:00
Wojciech Tyczynski
ebc14e1a2e
Regenerate clients
2015-12-21 11:12:25 +01:00
k8s-merge-robot
9e8233fc3c
Merge pull request #17398 from janetkuo/deployment-controller-informer
...
Auto commit by PR queue bot
2015-12-18 19:13:32 -08:00
k8s-merge-robot
730a6a1d55
Merge pull request #18685 from caesarxuchao/client-gen-output
...
Auto commit by PR queue bot
2015-12-18 10:55:05 -08:00
Chao Xu
b61c9a4cf3
output of client-gen
2015-12-17 23:42:16 -08:00
Janet Kuo
32d153093e
Fix deployment tests failures; change ResyncPeriod
2015-12-17 19:29:54 -08:00
Sam Ghods
b838d8ce18
Add informers to deployment controller
2015-12-17 19:29:54 -08:00
Abhishek Shah
6f63875165
Reverting 18442
2015-12-17 16:57:29 -08:00
deads2k
9fda7f1812
update StatusDetails to handle Groups
2015-12-17 09:14:12 -05:00
k8s-merge-robot
5c4479f542
Merge pull request #18442 from deads2k/gv-restmapper-10
...
Auto commit by PR queue bot
2015-12-17 06:06:43 -08:00
k8s-merge-robot
c02598aea2
Merge pull request #18551 from caesarxuchao/remove-serverapiversions
...
Auto commit by PR queue bot
2015-12-17 05:28:03 -08:00
k8s-merge-robot
0f144fd351
Merge pull request #18529 from timstclair/server
...
Auto commit by PR queue bot
2015-12-17 04:27:11 -08:00
k8s-merge-robot
5d16372104
Merge pull request #18653 from smarterclayton/cancel_wrapper
...
Auto commit by PR queue bot
2015-12-16 23:23:21 -08:00
Chao Xu
f2edba3bec
remove ServerAPIVersions from client
...
hard-code the groupVersion in SetKubernetesDefaults
2015-12-16 16:24:55 -08:00
Tamer Tas
c798a6ef01
ConfigMap resource and its REST implementation
2015-12-16 11:19:26 -05:00
deads2k
41b78ad2b6
find partial resource matches
2015-12-16 10:19:31 -05:00
k8s-merge-robot
e309583ff1
Merge pull request #18473 from smarterclayton/change_runtime_object
...
Auto commit by PR queue bot
2015-12-16 04:24:22 -08:00
Clayton Coleman
8f203a28f1
Change runtime.Object signature
2015-12-15 13:36:25 -05:00
Tim St. Clair
89bc7992f9
Refactor kubelet server into its own package
...
Refactor Kubelet's server functionality into a server package. Most
notably, move pkg/kubelet/server.go into
pkg/kubelet/server/server.go. This will lead to better separation of
concerns and a more readable code hierarchy.
2015-12-15 10:20:38 -08:00
deads2k
6e33403abf
update CodecFor for GroupVersion
2015-12-15 10:56:00 -05:00
k8s-merge-robot
c2af9cac58
Merge pull request #18590 from mikedanese/transit
...
Auto commit by PR queue bot
2015-12-15 04:09:02 -08:00
k8s-merge-robot
3680268c52
Merge pull request #18353 from deads2k/gv-use-constants
...
Auto commit by PR queue bot
2015-12-15 03:25:09 -08:00
k8s-merge-robot
abeda72863
Merge pull request #18231 from caesarxuchao/client-gen-test
...
Auto commit by PR queue bot
2015-12-15 02:19:16 -08:00
k8s-merge-robot
b3ccad2341
Merge pull request #18680 from caesarxuchao/clean-client
...
Auto commit by PR queue bot
2015-12-15 01:21:32 -08:00
k8s-merge-robot
06df5c97e7
Merge pull request #18499 from wojtek-t/fix_reflector_race
...
Auto commit by PR queue bot
2015-12-15 01:19:06 -08: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
k8s-merge-robot
29e8b6123f
Merge pull request #17529 from jayunit100/hammer-backoff-expo-part2
...
Auto commit by PR queue bot
2015-12-14 19:48:40 -08:00
Chao Xu
f565646ea5
remove dead code in client
2015-12-14 13:34:07 -08:00
Chao Xu
05e3cb8bfb
adding a mock.testType to test the generated client code
2015-12-14 11:24:44 -08:00
deads2k
d0aaf13920
use constants for group names
2015-12-14 10:04:10 -05:00
Clayton Coleman
6824530ae1
Debugging round tripper should wrap CancelRequest
2015-12-14 09:39:06 -05:00
Wojciech Tyczynski
960808bf08
Switch to versioned ListOptions in client.
2015-12-14 14:26:09 +01:00
Filip Grzadkowski
4ef062c22f
Merge pull request #18476 from caesarxuchao/fix-query-convert
...
Fix queryparams convert
2015-12-14 13:22:27 +01:00
Wojciech Tyczynski
6a7e8861c2
Fix data-race in reflector test in Go 1.5.1
2015-12-14 09:47:45 +01:00
k8s-merge-robot
266ab4a796
Merge pull request #18487 from smarterclayton/guard_encode_decode
...
Auto commit by PR queue bot
2015-12-13 23:08:18 -08:00
Chao Xu
367872a63a
add label test to deployment client
2015-12-13 13:56:01 -08:00
k8s-merge-robot
c458cd7bb7
Merge pull request #18379 from deads2k/gv-newobject
...
Auto commit by PR queue bot
2015-12-13 13:33:16 -08:00
k8s-merge-robot
47d2f41680
Merge pull request #18370 from deads2k/gv-interfacesfor
...
Auto commit by PR queue bot
2015-12-13 10:27:17 -08:00
k8s-merge-robot
583b733a1e
Merge pull request #18309 from brendandburns/3rdparty2
...
Auto commit by PR queue bot
2015-12-12 01:23:06 -08:00
Mike Danese
5c1ead8869
add leader transitions to leader election record
2015-12-11 13:51:01 -08: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
Mike Danese
5e03250577
fix testcase in pkg/client/leaderelection that wasn't testing what it said it was testing
2015-12-11 10:58:46 -08:00
deads2k
ec87d74ecb
update InterfacesFor to use GroupVersion
2015-12-11 13:45:41 -05:00
Brendan Burns
cee738871e
Add a client implementation for third party resources
2015-12-10 15:43:05 -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
k8s-merge-robot
dd0d1fb780
Merge pull request #18229 from caesarxuchao/move-testclient
...
Auto commit by PR queue bot
2015-12-10 06:22:22 -08:00
Marcin Wielgus
f6f7725f90
Merge pull request #18340 from wojtek-t/pod_intra_communication_test
...
Set timeout for clients created in e2e tests
2015-12-10 14:54:36 +01:00
Wojciech Tyczynski
f28bb68d8c
Support collection deletion in apiserver.
2015-12-10 09:46:25 +01:00
Clayton Coleman
1e21054134
Hide common codec methods under helpers
...
The pending codec -> conversion split changes the signature of
Encode and Decode to be more complicated. Create a stub helper
with the exact semantics of today and do the simple mechanical
refactor here to reduce the cost of that change.
2015-12-09 21:15:02 -05:00
Wojciech Tyczynski
f1de51567d
Set timeout for e2e clients
2015-12-09 20:44:25 +01:00
Chao Xu
6f0eb521a6
Move pkg/client/unvrsioned#testClient to pkg/client/unversioned/testclient#simple
2015-12-09 10:39:28 -08:00
Wojciech Tyczynski
0cefb43707
Enable listing from memory
2015-12-09 16:24:14 +01:00
Wojciech Tyczynski
a915b8b29a
Merge pull request #18080 from wojtek-t/list_options_in_listwatch
...
Pass ListOptions to List in ListWatch.
2015-12-09 14:27:51 +01:00
deads2k
519b4e80d1
update NewObject for groupversionkind
2015-12-09 08:13:15 -05:00
k8s-merge-robot
2adcd77dbd
Merge pull request #18407 from mikedanese/doc-fix
...
Auto commit by PR queue bot
2015-12-09 01:32:34 -08:00
k8s-merge-robot
85789f319f
Merge pull request #18103 from deads2k/gv-remove-groupmetaVersion
...
Auto commit by PR queue bot
2015-12-08 23:31:52 -08:00
k8s-merge-robot
a486977e19
Merge pull request #17982 from deads2k/gv-testapi-01
...
Auto commit by PR queue bot
2015-12-08 22:16:59 -08:00
Mike Danese
0b6167c0c4
fix package doc so it shows up on godoc.org
2015-12-08 17:19:44 -08:00
Mike Danese
68cf14695c
implement client leaderelection library
2015-12-08 13:39:56 -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
deads2k
2ee3dfe415
update testapi to eliminate redundant fields
2015-12-07 15:54:26 -05:00
k8s-merge-robot
ec1ba7438f
Merge pull request #17796 from deads2k/gv-object-typer
...
Auto commit by PR queue bot
2015-12-07 12:34:55 -08:00
deads2k
66eecb963a
update more kubectl bits for groupversion
2015-12-07 09:01:44 -05:00
deads2k
f764e0099c
Update ObjectTyper to GroupVersion
2015-12-07 08:35:05 -05:00
Wojciech Tyczynski
b0fcb5adef
Pass ListOptions to List in ListWatch.
2015-12-07 11:53:53 +01:00
k8s-merge-robot
db11f1b6c6
Merge pull request #17133 from derekwaynecarr/quota_controller_improvements
...
Auto commit by PR queue bot
2015-12-06 12:24:00 -08: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
e2679abdb8
Merge pull request #18011 from sdminonne/podSelector_labelSelector
...
Auto commit by PR queue bot
2015-12-05 13:56:04 -08:00
k8s-merge-robot
ab35fff6f0
Merge pull request #18234 from krousey/clienttest
...
Auto commit by PR queue bot
2015-12-05 07:36:34 -08:00
Kris
e2583e294d
Cleaning up test organization for impending move
...
I'm moving/deleting some tests to make an upcoming RESTClient refactor
PR cleaner.
- TestDoRequestBearer is redundant to
pkg/client/transport.TestBearerAuthRoundTripper
- Added a case to pkg/client/transport.TestBasicAuthRoundTripper to
cover what TestDoRequestWithoutPassword was testing
- Moved TestSetsCodec, TestRESTClientRequires,
TestValidateHostParameter to helper_test.go since they were really
testing helper functions and not the RESTClient directly.
- Modified TestValidateHostParameter during the moved to just use
DefaultServerURL instead of creating a client.
2015-12-04 14:21:06 -08:00
Salvatore Dario Minonne
80575c3093
renaming PodSelector to LabelSelector
2015-12-04 09:49:08 +01:00
derekwaynecarr
55d4f70f8e
Resource quota observes deletes faster
2015-12-03 17:35:05 -05: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
Wojciech Tyczynski
6dcb689d4e
Simplify List() signature in clients.
2015-12-03 09:54:07 +01:00
k8s-merge-robot
51e7042295
Merge pull request #16590 from ncdc/create-all-streams-before-copying
...
Auto commit by PR queue bot
2015-12-02 16:51:49 -08:00
Andy Goldstein
e30b8a36d2
Create all streams before copying in exec/attach
...
Create error, stdin, stdout, stderr streams first, and only start
copying once all the streams have been created. This fixes an issue
where the client immediately starts sending data for stdin before all
the other streams have been created. This ends up blocking the spdy
connection frame handler and causes the entire exec/attach session to
time out.
2015-12-02 17:16:33 -05:00
deads2k
675d8a235e
remove Versions from GroupMeta
2015-12-02 16:16:36 -05:00
k8s-merge-robot
8a8639d7af
Merge pull request #17863 from wojtek-t/only_list_options_in_watch
...
Auto commit by PR queue bot
2015-12-02 06:28:28 -08:00
k8s-merge-robot
689586c6ae
Merge pull request #16153 from gmarek/use_api_ports
...
Auto commit by PR queue bot
2015-12-02 05:57:49 -08:00
gmarek
459131fd92
Use KubeletPort reported in NodeStatus instead of cluster-wide master config, take 2.
2015-12-02 13:38:17 +01:00
mqliang
9ff765978a
add filedselector for Event
2015-12-01 23:02:48 +08:00
Wojciech Tyczynski
8343c8ce6c
Pass ListOptions to List() methods.
2015-12-01 15:00:36 +01:00
Wojciech Tyczynski
d2dfc912e6
Simplify Watch() signature in clients.
2015-12-01 14:19:26 +01:00
k8s-merge-robot
a836b1e261
Merge pull request #17326 from caesarxuchao/grooupVersion-lastest
...
Auto commit by PR queue bot
2015-12-01 05:05:40 -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
k8s-merge-robot
329567ecb4
Merge pull request #17739 from ncdc/fix-port-forward-test-flake
...
Auto commit by PR queue bot
2015-12-01 02:48:37 -08:00
Wojciech Tyczynski
68b3701176
Merge pull request #17836 from wojtek-t/support_selectors_in_versioned_params
...
Handle selectors correctly in VersionedParams().
2015-12-01 10:29:53 +01:00