Commit Graph

50 Commits (9565c170c4cd828d887b941f87acfc6e3ea59cfb)

Author SHA1 Message Date
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
Filipe Brandenburger fabf7c7f55 Fix the e2e scripts after PR 1284 which added a new file. 2014-09-11 15:32:11 -07:00
Joe Beda 073327277b Fix label query in e2e basic.sh 2014-09-05 14:10:02 -07:00
Joe Beda 1410724031 Fix up some flaky behavior of the new improved update e2e test. 2014-09-05 13:04:31 -07:00
Joe Beda ce34eacd2c Fix up e2e test for update demo.
Use the scripts that are in the example directory.  Also actually run the update as part of the test.
2014-09-04 13:25:39 -07:00
Joe Beda c47b405841 Use KUBECFG instead of CLOUDCFG in scripts 2014-09-04 13:25:39 -07:00
Brendan Burns 0c1b89c7f2 Add some extra debugging, and a sleep to attempt to deflake the update test. 2014-08-20 22:28:54 -07:00
Brendan Burns 0adde96bba Update e2e scripts to use the -template parameter.
Add a script for the update demo.
2014-08-20 12:24:39 -07:00
derekwaynecarr 10e8c43f46 Improve testing reliability 2014-07-30 16:34:48 -04:00
derekwaynecarr 69ae2fe4bb Initial vagrant setup and e2e testing support 2014-07-24 16:32:36 -04:00
Daniel Smith b709532fdd Move jq requirement message 2014-06-16 20:45:38 -07:00
Daniel Smith b3c934cde1 Parse status; makes test much faster 2014-06-16 20:42:17 -07:00
Daniel Smith cba453d72b Fix basic test the other way. 2014-06-13 17:31:57 -07:00
Daniel Smith 74ea18209a Add mac instructions 2014-06-13 17:27:01 -07:00
Daniel Smith 2d0b111ba8 Fix basic e2e test 2014-06-13 17:24:12 -07:00
Daniel Smith 5626703634 Add a new e2e test; fix some bugs/usability problems 2014-06-13 16:30:26 -07:00
Daniel Smith de3ae061ee Split up e2e test code. More e2e tests on the way. 2014-06-13 12:35:03 -07:00