Eric Paris
a6beb2e7df
Autogenerate md documentation for kubectl
...
This does away with the giant dump from cobra for kubectl and instead
generates md files which contain similar information, but one per verb.
This might work well as part of the cobra project, instead of doing it
in kube, but this gets us nice, linked, documentation right now. If
people like it, I will try to get something similar into cobra.
2015-02-12 19:08:57 -05:00
Eric Paris
8e64be1c66
Add godeps for man page autogeneration
2015-02-12 18:38:25 -05:00
Jerzy Szczepkowski
f94da1e6aa
Initial implementation of kube-dump.sh - script which dumps state of Kubernetes cluster for debugging. Tested on GCE only. This is initial attempt to fix #3500 .
2015-02-12 21:48:34 +01:00
Filipe Brandenburger
f9a4471eca
Merge pull request #4356 from filbranden/hack_e2e_clustersize_output
...
Simplify ValidateClusterSize() to use cmd.Output() directly
2015-02-11 16:55:30 -08:00
roberthbailey
2ed888592b
Merge pull request #4351 from rajatchopra/master
...
democratize restart-apiserver method across clouds
2015-02-11 15:23:06 -08:00
Filipe Brandenburger
43543faaa7
Simplify ValidateClusterSize() to use cmd.Output() directly
...
This is a first step towards getting rid of finishRunningWithOutputs and
using the native os/exec methods directly where possible.
2015-02-11 15:02:24 -08:00
Rajat Chopra
56462c020a
democratize restart-apiserver method across clouds
2015-02-11 13:44:43 -08:00
Zach Loafman
a08e04dd68
Unpatch Jenkins now that #4177 is fixed
...
And actually, make it more better: Go ahead and tear down the cluster
even when tests fail, but (hopefully) relay the test exit status
correctly. This fails if there's a double error (if -down *also*
fails, we'll fail due to errexit), but either way is a build failure,
and this means that the teardown of a test failure build isn't getting
charged to the next run.
2015-02-11 13:42:14 -08:00
Filipe Brandenburger
55e8357c0f
Merge pull request #4339 from zmerlynn/issue_4177
...
Fix hack/e2e.go exit status for -test
2015-02-11 13:21:37 -08:00
Zach Loafman
f08f7e6972
Clean up output handling in hack/e2e.go
...
Dovetail stdout/stderr and remove escaping for TAP.
2015-02-11 13:12:48 -08:00
Zach Loafman
ab38a78d70
Test() was mis-tracked. Change the variable name / handling here, and
...
also just make it unset so that if it's ever uninitialized it's
obvious.
Fixes #4177
2015-02-11 13:11:03 -08:00
Filipe Brandenburger
50a399fa30
Merge pull request #4341 from zmerlynn/i4340
...
Fix e2e-internal scripts for cluster-size and watch-events
2015-02-11 13:00:27 -08:00
Zach Loafman
9257b58e68
Fix e2e-internal scripts for cluster-size and watch-events
...
Fixes #4340
2015-02-11 12:46:31 -08:00
Brian Grant
20f7cbb87b
Merge pull request #4291 from jlowdermilk/delete-kubecfg
...
Remove kubecfg, cleanup a few stray references.
2015-02-11 11:18:59 -08:00
roberthbailey
e14ebcbea8
Merge pull request #4317 from justinsb/retry_logic_on_update
...
Fix polling in e2e-suite/update.sh: exit if we time out
2015-02-11 11:09:04 -08:00
Justin Santa Barbara
934bf51fe9
Fix polling in e2e-suite/update.sh: exit if we time out
...
Also reduce the number of iterations to 20
2015-02-11 13:56:27 -05:00
roberthbailey
ed8237119f
Merge pull request #4316 from justinsb/optional_args
...
Default value for ${@}, otherwise nounset causes failure
2015-02-11 10:41:10 -08:00
roberthbailey
d68107be5e
Merge pull request #4314 from justinsb/e2e_fixes
...
Remove stray r
2015-02-11 10:29:20 -08:00
Justin Santa Barbara
8cbd97d8bd
Default value for ${@}, otherwise nounset causes failure
2015-02-11 12:39:06 -05:00
Justin Santa Barbara
4cf0e4c37f
Remove stray r
2015-02-11 12:34:19 -05:00
Jeff Lowdermilk
197059b65d
Remove kubecfg, cleanup a few stray references.
2015-02-10 16:43:12 -08:00
CJ Cullen
a840c20939
Merge pull request #4158 from HackToday/master
...
Check curl before use it
2015-02-10 16:24:53 -08:00
Zach Loafman
2f231e0a2a
Merge pull request #4268 from rajatchopra/master
...
Fix vagrant networking round 2
2015-02-10 07:39:48 -08:00
Rajat Chopra
1d12cad456
Fix vagrant networking. Include the master as part of overlay. And remove STP for efficiency.
...
fix e2e services for vagrant
Kubelet should wait on SDN to finish
Do not require docker on master for default clouds
2015-02-09 14:37:27 -08:00
Zach Loafman
6b8c332cd3
Revert "Fix vagrant networking"
2015-02-09 13:40:11 -08:00
Clayton Coleman
d6069aa13a
Merge pull request #4204 from rajatchopra/master
...
Fix vagrant networking
2015-02-09 14:52:13 -05:00
Clayton Coleman
4369e31b9d
Integration tests should use 127.0.0.1 consistently
2015-02-09 14:30:31 -05:00
Brendan Burns
e7a69504b4
Now that we automatically format GCE PD, remove formatting from the e2e test.
...
Also remove docs that note that it is necessary.
2015-02-06 20:30:58 -08:00
Rajat Chopra
a9d8713db4
fix e2e services for vagrant
2015-02-06 18:34:27 -08:00
Filipe Brandenburger
162d7a00b3
Fix hack/e2e.go --ctl output
...
Export the KUBE_CONFIG_FILE environment variable pointing to the test
output when calling cluster/kubectl.sh directly.
Tested by running:
$ go run ./hack/e2e.go -v -ctl='version --match-server-version=false'
2015-02-06 14:36:35 -08:00
Filipe Brandenburger
e63ccfff6c
Reintroduce "Turn the hack/e2e.go commands into standalone scripts."
...
This reverts commit 2765660101
,
which reverted a commit 0c7dce77dd
, so
we're reintroducing the same code from that commit here.
2015-02-06 14:35:43 -08:00
Zach Loafman
2765660101
Revert "Turn the hack/e2e.go commands into standalone scripts."
2015-02-06 14:13:00 -08:00
Zach Loafman
fc06acdd2b
Merge pull request #4198 from filbranden/e2e_standalone_scripts
...
Turn the hack/e2e.go commands into standalone scripts.
2015-02-06 12:24:48 -08:00
Filipe Brandenburger
0c7dce77dd
Turn the hack/e2e.go commands into standalone scripts.
...
This gets rid of bashWrap() and of running bash -s passing it a script
on stdin. Also get rid of most of the runBash*() helpers.
In particular, `go run hack/e2e.go -build` will now work when it needs
to ask whether it is OK to download a large docker image, it used to
fail since stdin was not available for the bash script using the `read`
command.
Tested by running a full `hack/e2e-test.sh` run including the build
stage without the docker image loaded, which used to fail before this
change.
2015-02-06 11:18:14 -08:00
Zach Loafman
134d332793
Move verbosity flag into driver.go, randomize specs
...
Before we get too many suites baked, I want to get spec randomization
in, just so no one accidentally thinks things flow from top to bottom.
The random seed is printed with every run:
Random Seed: 1423194521 - Will randomize all specs
and can be reproduced using --ginkgo.seed
2015-02-05 19:49:04 -08:00
Rajat Chopra
b61ea1bbf1
Fix vagrant networking. Include the master as part of overlay. And remove STP for efficiency.
2015-02-05 17:41:27 -08:00
Kennan
903ed06774
Merge remote-tracking branch 'upstream/master'
2015-02-06 08:16:28 +08:00
Kennan
492e03697f
Merge branch 'master' of https://github.com/HackToday/kubernetes
2015-02-06 08:10:49 +08:00
Kennan
eaab84a414
Check curl before use it
...
This check can help user figure out what's the issue during
local cluster setup
2015-02-06 08:02:50 +08:00
rsokolowski
df26b43a9d
Fix hack/e2e-test.sh broken due to removed flag from hack/e2e.go
2015-02-05 23:56:43 +01:00
Brian Grant
c1ca07338f
Merge pull request #4149 from nikhiljindal/autoSwaggerSpec
...
Adding static swagger spec and a script to update it
2015-02-05 12:13:33 -08:00
nikhiljindal
fe27529d7e
Adding static swagger spec and a script to update it
2015-02-05 12:00:28 -08:00
Zach Loafman
49a1984e98
Breakfix for #4177 , not a real solution
2015-02-05 11:24:45 -08:00
Zach Loafman
c15595fdf7
Revert jenkins/e2e.sh back to 606b517a
, minus -tap
2015-02-05 10:25:59 -08:00
Brendan Burns
8b25b43039
Merge pull request #4117 from wojtek-t/validate_docker_version
...
Check Docker version in Kubelet /healthz handler
2015-02-05 10:06:33 -08:00
Zach Loafman
dad85ef4f1
Add more logging
2015-02-05 10:01:45 -08:00
Zach Loafman
0b456e40bf
Fix jenkins/hack/e2e.sh, log errors better
2015-02-05 09:16:11 -08:00
Zach Loafman
f21a25e7fc
Add hack/ginkgo-e2e.sh to kubernetes-test.tgz
2015-02-05 08:06:50 -08:00
Zach Loafman
bace7593d0
Enable ginkgo.v (console output is missing spec without it)
2015-02-05 07:24:05 -08:00
Zach Loafman
688f96cd33
Run shell tests under Ginkgo, changing all reporting to JUnit
...
* Add a test/e2e/shell.go that slurps up everything in hack/e2e-suite
and runs it as a bash test, borrowing all the code from hack/e2e.go.
* Rip out all the crap in hack/e2e.go that deal with multiple tests
* Move hack/e2e-suite/goe2e.sh to hack/ginkgo-e2e.sh so that it
doesn't get slurped up.
2015-02-05 07:24:05 -08:00