Commit Graph

166 Commits

Author SHA1 Message Date
Brendan Burns
ca6576d060 Add a simple script for running go e2e tests against existing clusters.
Also add an even simpler script for testing the network setup.
2015-01-28 16:39:21 -08:00
Zach Loafman
668d8539b8 Merge pull request #3855 from filbranden/ginkgo1
Initial adoption of Ginkgo in Kubernetes e2e tests
2015-01-28 16:32:11 -08:00
Filipe Brandenburger
606b517a07 Enable Go e2e report_dir in Jenkins
Use the E2E_REPORT_DIR global environment variable to define the
location where the JUnit XML reports should be saved.

Modify the Jenkins e2e.sh script to export that variable pointing to the
top of the Jenkins build tree.

Tested by running `E2E_REPORT_DIR=${PWD}/.. hack/e2e-test.sh` and
confirmed ../junit.xml was generated and looked good.
2015-01-28 16:27:43 -08:00
Maxwell Forbes
5500b1a261 Merge pull request #3576 from jlowdermilk/examples
Update update-demo example to use kubectl
2015-01-28 15:43:18 -08:00
Jeff Lowdermlk
c912b831ce Update update-demo example and e2e test to use kubectl 2015-01-28 15:26:56 -08:00
Satnam Singh
7e6a4ec0f5 Remove basic.sh and private.sh shell e2e tests 2015-01-28 14:43:53 -08:00
Filipe Brandenburger
18880d9086 Merge pull request #3895 from brendandburns/e2e
introduce a timeout for the update test.
2015-01-28 14:42:21 -08:00
Brendan Burns
d13d2e8661 Add a hacky sleep in an attempt to deflake a test. 2015-01-28 14:19:19 -08:00
Brendan Burns
281b3c15ab introduce a timeout for the update test. 2015-01-28 14:10:51 -08:00
Tim Hockin
988d15943f Merge pull request #3787 from satnam6502/serve_hostname
Reduce size of serve_hostname image
2015-01-28 09:07:26 -08:00
Brendan Burns
abce3ecf26 Fix update.sh given the renaming of the network container. 2015-01-27 21:58:21 -08:00
Tim Hockin
a480794efc Tighten validation of Name and Namespace 2015-01-27 17:04:59 -05:00
Satnam Singh
3841d1b5d1 Reduce size of serve_hostname image 2015-01-24 09:49:26 -08:00
Vishnu Kannan
2131ed5616 Fix monitoring.sh 2015-01-24 00:09:44 +00:00
Tim Hockin
9566467cdd Fix monitoring e2e to find kubectl 2015-01-23 12:36:03 -08:00
Vishnu Kannan
adbbfbf62f Improve monitoring e2e test. 2015-01-23 18:59:05 +00:00
Brian Grant
fc1e3854af Merge pull request #3684 from smreed/services-e2e-fix
Fixes endpoint propagation failure in services e2e
2015-01-21 10:37:26 -08:00
Steve Reed
0d79cfc581 Adds trailing semi-colon as per PR comment 2015-01-21 10:30:58 -08:00
Steve Reed
e3f7899be2 Extra echo in services.sh e2e test to get it to pass 2015-01-21 10:30:19 -08:00
Brian Grant
91533095e5 Merge pull request #3656 from jbeda/vagrant-e2e
Fix up a bunch of vagrant stuff to enable e2e
2015-01-21 07:26:13 -08:00
Satnam Singh
fc83ba704b Make basic end to end test robustly wait for hostIP 2015-01-20 19:30:13 -08:00
Joe Beda
a76b6dddad Turn of services.sh as it is broken.
See https://github.com/GoogleCloudPlatform/kubernetes/issues/3655.
2015-01-20 16:48:10 -08:00
Satnam Singh
d8f07da775 Revert basic.sh and private.sh 2015-01-16 14:43:11 -08:00
Vishnu Kannan
50c32fbba4 Adding a replication controller for all monitoring pods.
Removed auth for Grafana to facilitate usage via service proxy on the api-server.
Added a grafana service
Removed elasticsearch dependency for monitoring - faster startup times.
2015-01-16 18:37:46 +00:00
Satnam Singh
33e00320bf Convert private.sh test to Go and remove basic.sh and private.sh 2015-01-15 18:04:12 -08:00
Joe Beda
228659a177 Fix up for posix flags 2015-01-15 09:12:19 -08:00
Zach Loafman
e14d5f3416 Merge pull request #3464 from smarterclayton/fix_invalid_json_in_services.sh
Fix e2e invalid JSON, ensure CLI communicates invalid JSON errors effectively
2015-01-14 10:26:34 -08:00
Clayton Coleman
d986028cf7 Remove trailing commas from e2e services.sh 2015-01-14 12:36:25 -05:00
Zach Loafman
21e81de190 Deflake pd.sh: Try really, really hard to detach and delete PD, up pod-up timeout 2015-01-14 07:48:34 -08:00
Zach Loafman
c5c70dfcbb Merge pull request #3417 from brendandburns/e2e
Don't just sleep and hope when deleting the pd pod.
2015-01-12 16:13:00 -08:00
Brendan Burns
bdcb0c53f5 Don't just sleep and hope when deleting the pd pod. 2015-01-12 16:06:57 -08:00
Zach Loafman
0918bdbd88 Fix monitoring.sh flake (hopefully)
This was staring at me yesterday, and I even commented that "huh,
there's got to be something wrong with the firewall rules, but then
job/kubernetes-e2e-gce/1002/tapResults/ made it obvious: If you have
two e2e jobs running at the same time in the same project (hint:
Jenkins does), they'll race with each other, since resource names are
project scoped.
2015-01-10 08:19:55 -08:00
Tim Hockin
812e8346ac Merge pull request #3314 from zmerlynn/fix_services_sh_version_skewed
GKE: Fix services.sh for server versions < 0.8.0
2015-01-08 10:55:31 -08:00
Zach Loafman
e250c46598 GKE: Fix services.sh for server versions < 0.8.0
Commit e045c6ce broke this test against all server versions <0.8.0,
which immediately broke the GKE Jenkins runs.
2015-01-08 10:42:01 -08:00
Vish Kannan
869f06c4e8 Merge pull request #3257 from brendandburns/monitoring
Add some more robustness to the curl check.
2015-01-08 07:40:16 -08:00
Brendan Burns
dba7248d0e Add some more robustness to the curl check. 2015-01-07 21:07:49 -08:00
Brendan Burns
eda47206bd Add some retry to the wget checking from container. 2015-01-07 21:05:19 -08:00
Joe Beda
943ed6d289 Merge pull request #3146 from zmerlynn/limit_liveness_gke
GKE: Limit liveness.sh to server version >0.7.2
2015-01-05 14:41:39 -08:00
Zach Loafman
e965fc1f79 GKE: Limit liveness.sh to server version >0.7.2
What I really want is
https://github.com/GoogleCloudPlatform/kubernetes/issues/2953, but
haven't had a chance to code that yet. Maybe it's time. (Then I'd
remove the provider-specific test and just say "is it > 0.7.2, or does
it claim to be capable of something from the future?" The latter
covers the HEAD server case .. though just bumping the server version
immediately after release might also accomplish that, too.)
2015-01-05 14:21:21 -08:00
Joe Beda
9aa48b7628 Move heapster data files to cluster/addons.
Also pretty up the JSON (make it real JSON) and streamline the sed in cluster/gce/init.sh.
2015-01-05 12:32:35 -08:00
Tim Hockin
e045c6ce2f Split portals into host and container
After this DNS is resolvable from the host, if the DNS server is targetted
explicitly.  This does NOT add the cluster DNS to the host's resolv.conf.  That
is a larger problem, with distro-specific tie-ins and circular deps.
2014-12-29 09:18:12 -08:00
Tim Hockin
1c9ac79e78 Merge pull request #3141 from lavalamp/optimize
Fix e2e; add template function to make this possible
2014-12-23 15:03:33 -08:00
Daniel Smith
eff054515a fix update.sh 2014-12-23 22:48:43 +00:00
Brendan Burns
3f43dd32be Add some extra checks to (hopefully) prevent flakes. 2014-12-23 09:34:27 -08:00
Vishnu Kannan
ad37518fbe Improve monitoring e2e test. 2014-12-20 02:02:03 +00:00
Max Forbes
c3efef86d0 Add GKE as a provider. 2014-12-19 11:47:06 -08:00
Brendan Burns
4833b88af4 Fix the e2e test to remove a race. 2014-12-18 13:45:41 -08:00
Zach Loafman
d3aed6c9cd Add kubernetes-test.tar.gz
Add test artifacts to the build. This lets you do:

tar -xzf kubernetes.tar.gz
tar -xzf kubernetes-test.tar.gz
cd kubernetes
go run ./hack/e2e.go -up -test -down

without having a git checkout.
2014-12-17 14:30:30 -08:00
Brendan Burns
3a0d16ff35 Add an e2e test for exec liveness probes. Fix the docker exec integration. 2014-12-16 13:53:32 -08:00
bgrant0607
56ee66831b Merge pull request #2979 from brendandburns/e2e
Wait for not pending, not for running.
2014-12-16 13:49:49 -08:00
Brendan Burns
12803c1a0e Merge pull request #2944 from deads2k/deads-make-monitoring.sh-run
make e2e/monitor.sh work outside gce
2014-12-16 13:28:49 -08:00
Brendan Burns
d2ff21d3d5 Wait for not pending, not for running.
When failures occur, we go to 'Terminated' which can cause
indefinite blocking.
2014-12-16 13:27:34 -08:00
deads2k
8313e5d9bf make e2e/monitor.sh work outside gce 2014-12-16 15:01:16 -05:00
Brendan Burns
f1b55c04e2 Add an e2e test for http liveness. 2014-12-16 11:38:52 -08:00
Max Forbes
f9108c62c2 Use GCLOUD var consistently. 2014-12-15 13:08:10 -08:00
Max Forbes
bea37d5b17 Fix up e2e tests. 2014-12-15 11:53:51 -08:00
Brendan Burns
a670f833bd Improve the pd e2e test by deleting the pod, and verifying that the PD was unmounted by
recreating the pod.
2014-12-10 20:31:46 -08:00
Zach Loafman
3afcebecca Fix e2e-suite/certs.sh unbound variables
Fixes e2e failure on GCE
2014-12-07 16:39:56 -08:00
Brendan Burns
2a53b002ef Fix the update test. 2014-12-05 15:21:53 -08:00
Brendan Burns
c60742a436 Make certs.sh executable. 2014-12-05 14:11:19 -08:00
Tim Hockin
2486331d34 Add an e2e case for public IPs 2014-12-03 08:30:00 -08:00
Tim Hockin
bf1395f06a use a here-doc instead of kubecfg run 2014-12-02 23:55:45 -08:00
Brendan Burns
77d4950f83 Add an e2e test for cert generation. 2014-12-02 17:08:48 -08:00
Vishnu Kannan
090eb966f2 Adding an e2e test for monitoring. 2014-12-02 06:54:59 +00:00
Joe Beda
6ba07b38fc Convert gcutil to gcloud compute 2014-11-25 15:17:00 -08:00
Brendan Burns
e1764e2e01 Add an e2e test for gce pd.
Add an example for gce pd.
Add an extra log message.
2014-11-25 09:02:00 -08:00
Brendan Burns
cea52d7e4f Merge pull request #2409 from mattmoor/master
Implements a credentialprovider library for use by DockerPuller.
2014-11-17 21:53:25 -08:00
Matt Moore
0c5d9ed0d2 Implements a credentialprovider library for use by DockerPuller.
This change refactors the way Kubelet's DockerPuller handles the docker config credentials to utilize a new credentialprovider library.

The credentialprovider library is based on several of the files from the Kubelet's dockertools directory, but supports a new pluggable model for retrieving a .dockercfg-compatible JSON blob with credentials.

With this change, the Kubelet will lazily ask for the docker config from a set of DockerConfigProvider extensions each time it needs a credential.

This change provides common implementations of DockerConfigProvider for:
 - "Default": load .dockercfg from disk
 - "Caching": wraps another provider in a cache that expires after a pre-specified lifetime.

GCP-only:
 - "google-dockercfg": reads a .dockercfg from a GCE instance's metadata
 - "google-dockercfg-url": reads a .dockercfg from a URL specified in a GCE instance's metadata.
 - "google-container-registry": reads an access token from GCE metadata into a password field.
2014-11-17 21:46:54 -08:00
Joe Beda
66d287f7e4 Merge branch 'rename-to-kube' of https://github.com/eparis/kubernetes into eparis-rename-to-kube
* 'rename-to-kube' of https://github.com/eparis/kubernetes:
  rename kube server binaries to kube-

Conflicts:
	docs/salt.md
2014-11-17 09:52:10 -08:00
Brendan Burns
c38880047d Update guestbook to fix given recent changes. 2014-11-15 19:36:02 -08:00
Daniel Smith
e4eb6149f8 Merge pull request #2383 from brendandburns/fix
Fix service e2e test, by eliminating the assumption that ips are re-used
2014-11-14 17:22:50 -08:00
Brendan Burns
97001e317b Fix service e2e test, by eliminating the assumption that ips are re-used. 2014-11-14 17:22:01 -08:00
Joe Beda
5a0159ea00 Get Vagrant to start using TLS client certs.
Also fix up cert generation. It was failing during the first salt highstate when trying to chown the certs as the apiserver user didn't exist yet.  Fix this by creating a 'kube-cert' group and chgrping the files to that.  Then make the apiserver a member of that group.

Fixes #2365
Fixes #2368
2014-11-13 22:16:45 -08:00
Eric Paris
a99c3c7963 rename kube server binaries to kube-
apiserver becomes kube-apiserver
controller-manager -> kube-controller-manager
scheduler and proxy similarly.

Only thing I promise is that right now hack/build-go.sh and
build/release.sh exit with 0.  That's it.  Who knows if any of this
actually works....
2014-11-13 20:08:26 -05:00
David Oppenheimer
3d69351924 Change update example to use a trivial webserver instead of nginx (issue #1803). 2014-11-12 15:13:11 -08:00
davidopp
6a736901ca Revert "Change update example to use a trivial webserver instead of nginx (issue..." 2014-11-11 23:03:23 -08:00
David Oppenheimer
03ae4b54a3 Change update example to use a trivial webserver instead of nginx (issue #1803). 2014-11-11 22:16:18 -08:00
Daniel Smith
d5c6499d93 Update scripts to expect versioned output in templates. 2014-11-07 16:47:22 -08:00
Joe Beda
5d33ce46cc Rework hack/ and build/ directories.
* Rewrite a bunch of the hack/ directory with modular reusable bash libraries.
* Have 'build/*' build on 'hack/*'.  The stuff in build now just runs hack/* in a docker container.
* Use a docker data container to enable faster incremental builds.
* Standardize output to _output/{local,dockerized}/bin/OS/ARCH/*.  This regularized placement makes cross compilation work.
* Move travis specific scripts under hack/travis

With new dockerized incremental builds, I can do a no-op `make quick-release` in ~30s.  This is a significant improvement.
2014-11-01 17:56:41 -07:00
bgrant0607
e45910fb08 Merge pull request #2017 from jbeda/fix-e2e
Fix e2e tests
2014-10-27 16:51:19 -07:00
Joe Beda
053d65c086 Fix e2e tests 2014-10-27 16:31:31 -07:00
bgrant0607
ddea4ff709 Merge pull request #1977 from lavalamp/fix4
Start running e2e go tests. Disable broken test.
2014-10-27 16:27:11 -07:00
Brendan Burns
df3dd288f2 Fix the e2e tests and kubecfg given recent additional validation. 2014-10-27 13:39:21 -07:00
Daniel Smith
1e249be99d Start running e2e go tests. Disable broken test. 2014-10-23 16:13:46 -07:00
Brendan Burns
dbb23abac2 Fix the guestbook e2e test. 2014-10-23 11:32:01 -07:00
Joe Beda
33763d07b2 Fix e2e test for .ID->.Name change 2014-10-22 17:19:53 -07:00
Tim Hockin
1c2f04b8b7 Add e2e test 2014-10-16 08:36:47 -07:00
Daniel Smith
180e90f7eb Merge pull request #1790 from jbeda/1678-fix-e2e
Deal with the case where a pod goes away after we list it.
2014-10-15 12:01:28 -07:00
Joe Beda
391335cbff Deal with the case where a pod goes away after we list it.
Fixes #1678
2014-10-15 11:20:17 -07:00
Tim Hockin
360f2e53b0 Revamp e2e basic test to use a smaller container. 2014-10-15 10:54:56 -07:00
Joe Beda
e1b9f1aae2 Handle empty array in update.sh
Fixes #1776
2014-10-14 13:07:22 -07:00
Joe Beda
96c1bc17ca Set shell options for reliability.
Tweak a few other small things in our shell scripts.
2014-10-10 12:33:36 -07:00
Joe Beda
d43a6ec5a3 Standardize how we refer to the kubernetes root.
Now use $KUBE_ROOT as the variable pretty much everywhere.
2014-10-10 12:33:36 -07:00
Dawn Chen
a86d496f9a Fix e2e tests. 2014-10-06 13:37:24 -07:00
Joe Beda
81e91db697 Grab images as part of update e2e test 2014-09-26 14:31:12 -07:00
Tim Hockin
d5f3d152d2 Merge pull request #1435 from brendandburns/e2e2
Add a new network for e2e tests, to isolate it from any other cluster.
2014-09-25 08:47:19 -07:00
Brendan Burns
511ec280b9 Add a new network for e2e tests, to isolate it from any other cluster. 2014-09-24 22:37:19 -07:00
Dawn Chen
96686b3692 Update e2e test to reflect the change. 2014-09-24 16:42:10 -07:00
Dawn Chen
0e6ec3cbfc Convert existing kubernetes system to use ContainerStatus, instead of
docker.Container directly.

Conflicts:
	pkg/kubelet/dockertools/docker.go
	pkg/registry/pod/rest.go
2014-09-24 11:16:46 -07:00
Tim Hockin
cf86d66076 rename labels in kubcfg logic 2014-09-22 15:34:13 -07:00