Commit Graph

650 Commits

Author SHA1 Message Date
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
Chao Xu
6e192760e3 refactoring latest.go GroupVersion;
clean up latest.go GroupVersions;
remove latest.GroupMeta.Group;
remove latest.GroupMeta.Version.
2015-11-30 11:30:21 -08:00
k8s-merge-robot
140df5f809 Merge pull request #17220 from kargakis/kubectl-scale-deployments
Auto commit by PR queue bot
2015-11-30 04:19:58 -08:00
k8s-merge-robot
c1af9dcb7f Merge pull request #17885 from hongchaodeng/register
Auto commit by PR queue bot
2015-11-29 02:24:47 -08:00
Hongchao Deng
0521481655 client request metrics should be registered only once 2015-11-27 10:10:08 -08:00
Clayton Coleman
9d19238f6c Fix tests to pass with changed external types 2015-11-26 11:53:37 -05:00
deads2k
5c4fb5bcbe make RESTMapper.KindFor 2015-11-25 14:02:37 -05:00
deads2k
ed95a6d77f update scheme to use GroupVersion 2015-11-25 12:15:48 -05:00
deads2k
e0b7f52633 hack up queryToObject to continue to work as it used to 2015-11-25 12:14:06 -05:00
k8s-merge-robot
3bd23b185b Merge pull request #17730 from wojtek-t/use_unversioned_list_options_in_client
Auto commit by PR queue bot
2015-11-25 09:10:19 -08:00
Michail Kargakis
99fc35880b kubectl: Support scaling deployments
This commit adds support for using kubectl scale to scale deployments. Makes use of the
deployments/scale endpoint instead of updating deployment.spec.replicas directly.
2015-11-25 11:26:40 +01:00
k8s-merge-robot
3e56ce6490 Merge pull request #17327 from deads2k/gv-restmapper
Auto commit by PR queue bot
2015-11-24 19:08:49 -08:00
k8s-merge-robot
d42030170b Merge pull request #15999 from aveshagarwal/master-issue-15624
Auto commit by PR queue bot
2015-11-24 17:07:10 -08:00
Andy Goldstein
2fae847120 Fix TestPortForward flake
TestPortForward was failing occasionally due to the way the test was
written. It created a port forwarding session, then connected a client
to the local port, attempted to send some data, attempted to receive
some data, and then tore down the port forwarding session.
Unfortunately, some times the attempt to send data from the client to
the remote would be enqueued but not processed by the time the test tore
down everything. As a result, the data stream could get closed before
the client's data was transmitted to the server. If this happened, you'd
see an error such as 'forward 2 ports with bidirectional data: server
expected to receive "ghij", got "" for port 6000'.

This fixes the test by serializing the data flow: the client writes to
the remote, the remote waits to receive that data, the remote writes to
the client, and the client waits to receive the data from the remote.
This all takes place prior to the test tearing down port forwarding.
2015-11-24 15:38:11 -05:00
Wojciech Tyczynski
b6ef62af24 Use unversioned.ListOptions in clients. 2015-11-24 16:52:09 +01:00
deads2k
5077e9b644 make register.GroupVersion use GroupVersion 2015-11-24 09:45:36 -05:00
k8s-merge-robot
4fd6b6df06 Merge pull request #17316 from deads2k/gv-ClientForVersion
Auto commit by PR queue bot
2015-11-24 06:24:28 -08:00
Avesh Agarwal
001437a72f This commit fixes tests. 2015-11-24 09:16:12 -05:00
hurf
1270764eb9 Fix description errro for client-certificate option
From "client key file" to "client certificate file".
2015-11-24 09:33:35 +08:00
k8s-merge-robot
06ef4b0a83 Merge pull request #17156 from feihujiang/moveListFunctionsFromRuntimeToMetaPackage
Auto commit by PR queue bot
2015-11-23 14:13:25 -08:00
deads2k
a87d927588 update client.Config to use GroupVersion 2015-11-21 08:29:26 -05:00
k8s-merge-robot
203f119579 Merge pull request #17517 from krousey/request_tests
Auto commit by PR queue bot
2015-11-20 17:07:48 -08:00
Kris
7f6d2e8305 Cleaning up client request unit tests
1. Closing test servers that we open.
2. Remove dependency on Config and just call NewRESTClient directly
3. Remove auth tests as they are redundant to the tests in transport_test.go
2015-11-20 08:52:34 -08:00
k8s-merge-robot
f0b07c9c68 Merge pull request #16126 from krousey/client_breakup
Auto commit by PR queue bot
2015-11-20 01:47:22 -08:00
feihujiang
ad79fa6e84 Move list functions from runtime to meta package 2015-11-20 09:20:55 +08:00
Kris
9b75b88d4e Move client's tranport to a separate package 2015-11-19 14:55:47 -08:00
k8s-merge-robot
6383a3bc75 Merge pull request #17396 from krousey/podtest
Auto commit by PR queue bot
2015-11-19 08:54:31 -08:00
k8s-merge-robot
7536e776f3 Merge pull request #16931 from mikedanese/inclustercomponent
Auto commit by PR queue bot
2015-11-18 22:52:27 -08:00
Kris
4115738558 Change PodLogs test to use testClient validate
And also switch the 200s to http.StatusOK while I'm here.
2015-11-17 14:54:09 -08:00
Mike Danese
fb056c47b2 use inClusterConfig before using default config for cluster components 2015-11-17 10:37:40 -08:00
k8s-merge-robot
23d9d54b5f Merge pull request #17239 from fabianofranz/config_filename_debug
Auto commit by PR queue bot
2015-11-17 05:04:32 -08:00
k8s-merge-robot
849280f18d Merge pull request #16926 from liggitt/metrics_https
Auto commit by PR queue bot
2015-11-17 04:05:27 -08:00
Tim Hockin
ba383bcfeb Refactor IntOrString into a new pkg
pkg/util/intstr is a cleaner encapsulation for this type and supporting
functions.  No behavioral change.
2015-11-16 10:57:52 -08:00
Jordan Liggitt
165d7d5030 Enable specifying scheme/port for metrics client 2015-11-16 13:18:40 -05:00
Paul Morie
1cb58baf2f Refactor map field handling for clientcmd.LoadFromFile 2015-11-14 09:44:31 -05:00
Fabiano Franz
cb3bfbc757 Debug filename in config loader 2015-11-13 16:17:59 -05:00
k8s-merge-robot
927f30b0a5 Merge pull request #17074 from krousey/timeout
Auto commit by PR queue bot
2015-11-12 11:20:34 -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
Kris
eacf65ddce Renaming HTTPClientFunc to CreateHTTPClient 2015-11-11 11:54:58 -08:00
Kris
4a4d195419 Exposing http.Client for configurable timeouts 2015-11-10 13:40:51 -08:00
Wojciech Tyczynski
d80e0e837c Merge pull request #10707 from kargakis/logs-with-resource-builder
logs: Use resource builder
2015-11-09 16:40:10 +01:00
k8s-merge-robot
cf25625d46 Merge pull request #16929 from krousey/basic_auth_cleanup
Auto commit by PR queue bot
2015-11-07 09:58:27 -08:00
k8s-merge-robot
b8303a3983 Merge pull request #16859 from smarterclayton/allow_incluster_config
Auto commit by PR queue bot
2015-11-07 04:47:35 -08:00
k8s-merge-robot
9981f99949 Merge pull request #16849 from feihujiang/cleanupDeprecatedV1beta1Content
Auto commit by PR queue bot
2015-11-07 04:15:32 -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
k8s-merge-robot
d71a667aab Merge pull request #16821 from caesarxuchao/restclient-timeout
Auto commit by PR queue bot
2015-11-07 03:11:26 -08:00
Kris
0a4ee958c7 Use http's basic auth instead of manual encoding 2015-11-06 10:19:01 -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
feihujiang
eac8d6a997 Cleanup the content of deprecated V1beta1 2015-11-06 13:42:51 +08:00