Commit Graph

209 Commits (eb58cd6676cf56de92075d02f325870f3c380724)

Author SHA1 Message Date
Kris d63a215b23 Adding extra logging in case of error. 2016-05-09 11:40:05 -07:00
k8s-merge-robot 53b3ef2122 Merge pull request #23988 from php-coder/kubectl_describe_multiline_labels
Automatic merge from submit-queue

kubectl describe: show multiple labels/annotations on multiple lines

Small UX improvement: when there is more than one label/annotation, it's more readable to see them on the different lines.

Before:
```console
$ kubectl describe svc
Name:			s2i-test
Namespace:		test2
Labels:			app=s2i-test,foo=bar
...
```
After:
```console
$ kubectl describe svc
Name:			s2i-test
Namespace:		test2
Labels:			app=s2i-test
				foo=bar
...
```
This change affects output of the labels/annotations in many of the sub-commands of the `kubectl describe`.

PTAL @smarterclayton @kargakis
2016-05-08 12:51:45 -07:00
k8s-merge-robot 601e09852c Merge pull request #23590 from kargakis/timeout-logs-attach
Automatic merge from submit-queue

kubectl: more sophisticated pod selection for logs and attach

Trying to get the logs or attach to an object other than a pod
will poll forever if that object has no replicas. This commit adds
a 20s timeout for polling.

@kubernetes/kubectl @deads2k @fabianofranz
2016-05-08 10:51:00 -07:00
Robert Bailey 18a829e7a4 Merge pull request #24512 from freehan/goproxyflake
reuse goproxy pod and avoid race between kubectl exec and goproxy readiness
2016-05-06 14:46:30 -07:00
Joe Finney 81bb39c3c0 Mark two kubectl tests flaky. 2016-05-04 10:19:05 -07:00
k8s-merge-robot 1642083e60 Merge pull request #24645 from jlowdermilk/rolling-update
Automatic merge from submit-queue

kubectl rolling-update support for same image

Fixes #23497.

Enables `kubectl rolling-update --image` to the same image, adding a `--image-pull-policy` flag to remove ambiguity. This allows rolling-update to behave as an "update and/or restart" (https://github.com/kubernetes/kubernetes/issues/23497#issuecomment-212349730), or as a forced update when the same tag can mean multiple versions (e.g. `:latest`). cc @janetkuo @nikhiljindal
2016-05-04 07:24:22 -07:00
k8s-merge-robot 3b63b06b1b Merge pull request #24849 from fejta/flake
Automatic merge from submit-queue

Use tagged redis image for kubectl test, move json test file out of deprecated examples

Closes #24642

Changes the redis image to use the :e2e tagged version on gcr.io.

Since the examples/ subdir is deprecated in favor of the new kubernetes/kubernetes.github.io I just copied this file to test-manifests/kubectl like some other files.
2016-05-04 05:53:17 -07:00
Michail Kargakis a25088fe15 kubectl: more sophisticated pod selection for logs and attach 2016-05-02 15:56:36 +02:00
Clayton Coleman fdb110c859
Fix the rest of the code 2016-04-29 17:12:10 -04:00
Slava Semushin 72b4b54f28 kubectl describe: show multiple labels/annotations on multiple lines.
When there is more than one label/annotation, it's more readable to see
them on the different lines.
2016-04-28 18:37:41 +02:00
Erick Fejta 08c5af6e45 Use tagged redis image for kubectl test, move json test file out of deprecated examples 2016-04-26 21:43:19 -07:00
Minhan Xia 1993bf901a reuse goproxy pod and avoid race between kubectl exec and goproxy readiness 2016-04-26 16:45:10 -07:00
Jeff Lowdermilk 9b91750284 add e2e test for same-image rolling-update 2016-04-25 13:38:45 -07:00
Jay Vyas fcf254591f Slow down redis pod polling, ensure no flakiness in kubectl service
test.
2016-04-23 00:53:24 -04:00
k8s-merge-robot 3753e2bded Merge pull request #24180 from AdoHe/reuse_node_port
Automatic merge from submit-queue

Fix unintended change of Service.spec.ports[].nodePort during kubectl apply

Please refer #23551 for more detail. @bgrant0607 I think this simple fix should be ok to reuse nodePort. @thockin ptal.

Release note: Fix unintended change of `Service.spec.ports[].nodePort` during `kubectl apply`.
2016-04-20 08:51:40 -07:00
k8s-merge-robot 15ed9dbd02 Merge pull request #23771 from jayunit100/ClusterVerificationFramework
Automatic merge from submit-queue

Cluster Verification Framework

I've spent the last few days looking at the general patterns of verification we have that we tend to reuse in the e2es.  Basically, we need 
 
- label filters
- forEach and WaitFor (where forEach doesn't necessarily waitFor anything).
- timeouts
- multiple phases (reusable definition of state)
- an extensible way to define cluster state that can evolve over time in a data object rather than as a set of parameters that have magic semantics

This PR 
- implements the abstract above functionality declaratively, and w/o hidden semantics.
- addresses the sprawling duplicate methods in #23540, so that we can phase out the wrapper methods and replace them with well defined, extensible semantics for cluster state.
- fixes the recently discovered #23730 issue (where kubectl.go is relying on examples.go, which is obviously wacky) by using the new framework to implement forEachPod in just a couple of lines and migrating the wrapper function into framework.go.

There is some cleanup to do here, but this is seemingly working for a couple of use cases that are important (spark,cassandra,...,kubectl) tests. - i played with a few different ideas and this wound up seeming to be the most natural implementation from a usability standpoint... 

in any case, just thought id push this up as a first iteration, open to feedback.

@kubernetes/sig-testing @timothysc
2016-04-20 04:23:21 -07:00
AdoHe 16960d3ad2 fix reuse nodePort issue 2016-04-20 02:30:03 -04:00
Jay Vyas 632a0a81d4 Cluster verification framework supporting declarative definition and iteration against pod spectrum
- rebase: ForEach only on Running pods
- add waitFor step in guestbook describe and wrapper
- simplify logs in polling, make panic immediate, give rolluped stats in
the logs.

Improve logging for failure on ForEach
2016-04-18 10:01:10 -04:00
Isaac Hollander McCreery a96bb71bc9 Version-guard Kubectl client Guestbook application test against deployments 2016-04-15 10:51:10 -07:00
Tim St. Clair b0d3f32e88 Update test/e2e for test/e2e/framework refactoring 2016-04-13 10:50:17 -07:00
Andy Goldstein 66899a47a5 Update port forward e2e for go 1.6
Only close the stdout/stderr pipes from kubectl port-forward when we're truly done with the command,
instead of as soon as runPortForward exits.

Also try to gracefully stop kubectl port-forward via SIGINT, instead of always sending SIGKILL, as
this will help avoid spdy goroutine leaks in the Kubelet.
2016-03-30 17:07:21 -04:00
Erick Fejta f9d5c81c61 Add missing = 2016-03-19 18:06:13 -07:00
Erick Fejta be5f27e3aa Use tagged busybox image from gcr.io 2016-03-19 16:02:29 -07:00
Erick Fejta e3b2ecdb23 Use busybox:1.24 from gcr.io in kubectl.go 2016-03-19 15:56:26 -07:00
deads2k ab03317d96 support CIDRs in NO_PROXY 2016-03-16 16:22:54 -04:00
Jay Vyas 9a71dfe753 KubeDescribe implementation with verify into after-build/ scripts. 2016-03-15 22:29:21 -04:00
nikhiljindal 435a4e8279 disable kubectl validation for upgrade e2e 2016-03-15 11:26:10 -07:00
Jeff Lowdermilk c732681354 test kubectl run with default args
Also explicitly pass generator for run deployments test.
2016-03-14 15:09:32 -07:00
deads2k 8b06ef144e deflake rc logs test 2016-03-07 09:30:08 -05:00
k8s-merge-robot 2e03822386 Merge pull request #21335 from deads2k/make-rc-logs-work
Auto commit by PR queue bot
2016-03-05 09:37:24 -08:00
Jeff Lowdermilk 8c500a9c31 Merge pull request #22279 from soltysh/describer_none
Unifying empty/none/not set values in describer
2016-03-03 11:40:54 -08:00
deads2k f8f45df578 make kubectl logs work for replication controllers 2016-03-03 11:17:50 -05:00
Maciej Szulik 1b56d79f64 Unifying empty/none/not set values in describer 2016-03-02 13:57:39 +01:00
gmarek 110340c467 Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
k8s-merge-robot 7ee8dde1e3 Merge pull request #21945 from yujuhong/tag_nginx
Auto commit by PR queue bot
2016-02-25 19:37:09 -08:00
Yu-Ju Hong a66a60bc37 e2e: change the tests to use versioned image nginx:1.7.9 2016-02-24 16:54:40 -08:00
Chao Xu 3efd3c62e6 Replace ineffective DeleteOptions with nil 2016-02-24 15:06:24 -08:00
k8s-merge-robot 6a199706cb Merge pull request #21423 from ihmccreery/version-guard-deployments
Auto commit by PR queue bot
2016-02-22 11:04:51 -08:00
k8s-merge-robot e34a23b289 Merge pull request #21351 from smarterclayton/optional_pod_status
Auto commit by PR queue bot
2016-02-21 04:10:19 -08:00
feihujiang ac9f890238 Support the subresource of service proxy 2016-02-18 15:16:05 +08:00
Isaac Hollander McCreery 7b26656305 Skip Kubectl deployment test on clusters older that v1.2.0-alpha.7.726 2016-02-17 13:36:24 -08:00
Clayton Coleman 778fb1798b Don't print reason or message if they are empty on pods
For running pods they are typically empty and convey no value. Don't
print images twice.
2016-02-16 23:26:59 -05:00
feihujiang e85253916f Support the subresource of node proxy 2016-02-16 17:02:45 +08:00
Janet Kuo 4e8b4871c4 Add e2e test for kubectl run should generate deployment 2016-02-12 12:29:14 -08:00
Maisem Ali 1c6a223eaa Merge pull request #20865 from maisem/master
Adding a readiness probe to kubectl e2e tests.
2016-02-11 12:55:15 -08:00
Maisem Ali 16ad043cb8 running gofmt 2016-02-09 15:48:34 -08:00
Maisem Ali 4dfdb154fb Adding testing-manifests to the test tar ball 2016-02-09 14:09:26 -08:00
Madhusudan.C.S 518f08aa7c Move Deployments to ReplicaSets and switch the Deployment selector to the new LabelSelector.
Update the Deployments' API types, defaulting code, conversions, helpers
and validation to use ReplicaSets instead of ReplicationControllers and
LabelSelector instead of map[string]string for selectors.

Also update the Deployment controller, registry, kubectl subcommands,
client listers package and e2e tests to use ReplicaSets and
LabelSelector for Deployments.
2016-02-08 21:27:38 -08:00
Maisem Ali 3f58a0b15b Adding a readiness probe to kubectl e2e tests. 2016-02-08 15:38:17 -08:00
Isaac Hollander McCreery 14e6910364 Skip kubectl tests that don't work before v1.1 when running against a pre-v1.1 cluster; fixes #18581 2016-02-01 16:56:19 -08:00