Commit Graph

124 Commits (0e1b78fb6ecee3f987e67abb533c6979ea76a4c3)

Author SHA1 Message Date
Fabio Yeon 38dc2bd6d6 Revert "e2e: kubectl HTTP fix for #15713" 2015-10-17 22:34:43 -07:00
k8s-merge-robot 0338e0ef53 Merge pull request #15787 from ashcrow/release-tar-fix-for-15713
Auto commit by PR queue bot
2015-10-17 05:37:40 -07:00
Clayton Coleman e9a465d635 Make kubectl run attach behave like docker run
Have stdin closed by default, can be left open with --leave-stdin-open.
Add e2e tests for the behavior.
2015-10-16 20:33:51 -04:00
Steve Milner dda162d54c e2e: kubectl HTTP fix for #15713 2015-10-16 14:48:57 -04:00
Andy Goldstein 37b0cfd02b Temp. skip exec+proxy e2e test
It's breaking GCE e2e. Will reenable once we've fixed the test.
2015-10-15 14:22:14 -04:00
k8s-merge-robot a3f2ba2e34 Merge pull request #11694 from ncdc/add-spdy-proxy-support
Auto commit by PR queue bot
2015-10-15 06:56:15 -07:00
Steve Milner 57fc4bfa56 build: test/images in test tar and a static kubectl
* release tar now includes test/images/*
* kubectl is now built as a static binary in the test
2015-10-14 09:42:04 -04:00
Wojciech Tyczynski 647aa1bc8c Unify per-resource List for unversioned client 2015-10-14 08:37:57 +02:00
k8s-merge-robot 2dec0826f7 Merge pull request #15351 from caesarxuchao/fix-14584-1
Auto commit by PR queue bot
2015-10-13 02:19:43 -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
Jordan Liggitt 1043126135 Refactor SSH tunneling, fix proxy transport TLS/Dial extraction 2015-10-12 11:17:01 -04:00
Dr. Stefan Schimanski cb00df9b28 Tag conformance tests with a [Conformance] string in the description
- remove skip list from conformance-test.sh and filter by the new tag
- remove experimental api tests from conformance test suite
- remove all tests from conformance test suite which are either
  restricted to e.g. gce, gke, aws or require SSH
2015-10-09 23:14:43 +01:00
Robert Bailey 49d6c86eb7 Merge pull request #14621 from jackgr/kubectl_apply
Add the kubectl apply command
2015-10-08 12:44:32 -07:00
jackgr 703a3e19aa Add the kubectl apply command. 2015-10-07 17:14:51 -07:00
Brendan Burns 4cd0997dbf Add some more debugging info so we can determine why this test is flaking 2015-10-07 13:08:47 -07:00
Steve Milner e5d64ea19b e2e: kubectl verification for HTTP proxying using netexec and goproxy. 2015-10-05 16:05:36 -04:00
Andy Goldstein ed021fed4c Port forwarding fixes
Correct port-forward data copying logic so that the server closes its
half of the data stream when socat exits, and the client closes its half
of the data stream when it finishes writing.

Modify the client to wait for both copies (client->server,
server->client) to finish before it unblocks.

Fix race condition in the Kubelet's handling of incoming port forward
streams. Have the client generate a connectionID header to be used to
associate the error and data streams for a single connection, instead of
assuming that streams n and n+1 go together. Attempt to generate a
pseudo connectionID in the server in the event the connectionID header
isn't present (older clients); this is a best-effort approach that only
really works with 1 connection at a time, whereas multiple concurrent
connections will only work reliably with a newer client that is
generating connectionID.
2015-09-30 20:03:49 -04:00
gmarek 1459a1523f Add an option to modify timeout for namespace duration in e2e Framework 2015-09-24 10:32:34 +02:00
Clayton Coleman c2e90cd154 Support extended pod logging options
Increase the supported controls on pod logging. Add validaiton to pod
log options. Ensure the Kubelet is using a consistent, structured way to
process pod log arguments.

Add ?sinceSeconds=<durationInSeconds>, &sinceTime=<RFC3339>, ?timestamps=<bool>,
?tailLines=<number>, and ?limitBytes=<number>
2015-09-21 15:39:32 -04:00
Clayton Coleman bf2decce81 Add NotReadyAddresses to Endpoints
In many cases clients may wish to view not ready addresses for endpoints
in order to do set membership prior to a pod being ready. For instance,
a pod that uses the service endpoints to connect to other pods under
the same service, but does not want to signal ready before it has
contacted at least a minimal number of other pods.

This is backwards compatible with old servers and clients. There is
an additional cost in size of endpoints before services ramp up, which
will add minor CPU and memory use for services that have a significant
number of pods which have not become ready.
2015-09-17 09:41:56 -04:00
Jeff Lowdermilk 12010e9832 Add kubectl expose to GCE_PARALLEL_FLAKY_TESTS
It's essentially the same as Services.*expose, just using kubectl
instead of client lib.

Fixes #14078
2015-09-16 16:26:36 -07:00
Wojciech Tyczynski 53ae56f205 Replace "minion" with "node" in bunch of places. 2015-09-14 11:07:11 +02:00
k8s-merge-robot 865359d33d Merge pull request #13481 from brendandburns/attach3
Auto commit by PR queue bot
2015-09-10 20:05:19 -07:00
Brendan Burns 682c68c2fb Address comments, and fix some bugs in kubectl. 2015-09-09 11:48:04 -07:00
Brendan Burns 7f4bca80ba Add a test for kubectl run --attach=true 2015-09-09 11:48:03 -07:00
k8s-merge-robot c8526ad2da Merge pull request #12497 from amygdala/gb2
Auto commit by PR queue bot
2015-09-08 17:59:17 -07:00
Andy Goldstein c83786979c Various exec fixes
If stdin is noninteractive, the io.Copy from stdin to remoteStdin will
unblock when it finishes reading from stdin. In this case, make sure to
close remoteStdin so the server knows the client won't be sending any
more data. This ensures that the remote process terminates. For example:

echo foo | kubectl exec -i <pod> -- cat

Without this change, the `cat` process never terminates and `kubectl
exec` hangs.

Fix interactive exec sessions hanging after you type 'exit'.

Add e2e test to cover noninteractive stdin: `echo a | kubectl exec -i <pod>
cat`

Add e2e test to cover psuedo-interactive stdin: `kubectl exec -i <pod> bash`

Prep for sending multiple data frames over multiple streams in remote command
test, which is more likely to find flakes (requires bump of spdystream
once an issue with the frame worker queues not being fully drained when
a goaway frame is received).
2015-09-04 10:40:53 -04:00
Amy Unruh 3574999fa3 Use GCR images from 'google-samples' project; allow switch on whether dns service is
supported, or to use env vars to get service host info.

Test change to reflect php filename change.
2015-09-03 19:14:24 -07:00
Dan Mace da5e4d7bd5 Rolling updater availability enhancements
Enhance the rolling updater to support maintaining minimum pod
availability for the duration of the update process.
2015-09-01 12:54:08 -04:00
Clayton Coleman cc95dc586e Lengthen e2e kubectl timeout
30s on guestbook-go being pulled from the docker hub is tight -
occasionally lag in the DockerHub can cause kubectl expose it should
create services for rc to flake.
2015-08-21 12:54:36 -04:00
Saad Ali 22e49036f5 Merge pull request #12947 from mesosphere/guestbook-e2e-test
Un-skip guestbook application e2e test
2015-08-20 11:10:35 -07:00
Clayton Coleman 9267f829eb Update tests to prepare for graceful deletion
For cases where we want to immediately cleanup the pod, start using
gracePeriod 0 in test cases.
2015-08-19 22:20:29 -04:00
Dr. Stefan Schimanski 3b24ac55d0 Un-skip guestbook application e2e test
The comment said that the guestbook needs LoadBalancer support, which is not
true. The test had been skipped for everything but aws, gke and gce for that
reason.
2015-08-19 23:58:22 +02:00
Robert Bailey 08e6a43c1d Revert "Merge pull request #9165 from smarterclayton/graceful"
This reverts commit 4f856b595d, reversing
changes made to d78525a83b.

Conflicts:
	pkg/kubelet/status_manager.go
2015-08-18 17:34:49 -07:00
Kris Rousey ae6c64d9bb Moving everyone to unversioned client 2015-08-18 10:23:03 -07:00
Clayton Coleman b842a7dd15 Revert "Revert "Gracefully delete pods from the Kubelet""
This reverts commit 98115facfd.
2015-08-18 08:57:02 -04:00
Alex Robinson 9036f2cf82 Merge pull request #12408 from smarterclayton/improvements_to_test
e2e test cases should clean up more effectively
2015-08-10 18:15:04 -07:00
Clayton Coleman e623d33343 e2e test cases should clean up more effectively
Graceful deletion exposes weakness in cleanup paths, add
common hooks for waiting for namespcae deletion to complete,
use direct delection where necessary, and add some debug output
for finding cleanup flags (namespaces that aren't fully deleted)
2015-08-10 19:02:39 -04:00
Yu-Ju Hong 13aec6421a Check error before accessing returned value in e2e/kubectl.go
This avoids test panics.
2015-08-10 15:02:17 -07:00
Alex Robinson 9bda3c5998 Merge pull request #11138 from feihujiang/portForwardWithoutP
kubectl port-forward accept a pod without -p
2015-08-10 13:29:14 -07:00
Alex Robinson 1ad9015566 Merge pull request #12410 from mesosphere/non-unique-endpoint-ip-no-port-names
Fix e2e endpoints tests on Mesos
2015-08-10 09:49:55 -07:00
Marek Grabowski 5f9cefc1d8 Merge pull request #12441 from vlajos/typofixes-vlajos-20150807
typofix - https://github.com/vlajos/misspell_fixer
2015-08-10 16:33:52 +02:00
Veres Lajos 9f77e49109 typofix - https://github.com/vlajos/misspell_fixer 2015-08-08 22:31:48 +01:00
Brendan Burns e42d6aa255 Add --restart support to kubectl run 2015-08-07 13:20:09 -07:00
Dr. Stefan Schimanski f04f31f799 Use endpoint annotation to recover container ports in e2e tests on Mesos 2015-08-07 20:13:19 +02:00
Dr. Stefan Schimanski 8848e26154 Validate endpoints in e2e tests by pod UID and port
Before this patch endpoints were validated by container IP and port.
Depending on the endpoint controller logic neither of the two must match for a
valid endpoint (e.g. in a Mesos setup).

This patch checks that the endpoint targetRef points to the right pod by UID,
instead of comparing IPs.

A later patch will make sure the
compared port is the actual container port, not the host port.

/xref mesosphere/kubernetes-mesos#365
2015-08-07 20:13:18 +02:00
feihujiang 90f4c79bb9 kubectl port-forward accept a pod without -p 2015-08-07 17:21:59 +08:00
Stef Walter cd4f0b43ef test: End to end test for kubectl proxy --unix-socket 2015-08-06 11:56:48 +02:00
Mike Danese 8e33cbfa28 rewrite go imports 2015-08-05 17:30:03 -07:00