Commit Graph

5623 Commits (793677e8e2af67f14ddd6da0b88b43dc3c330919)

Author SHA1 Message Date
Yu-Ju Hong 4cb730dad5 Refactor API object fuzzer
API object fuzzer is used to randomly populate API object for testing. Similar
code of the fuzzer was duplicated in multiple files. This change refactors the
tests and moves the fuzzer to a separate file.
2015-01-29 18:14:09 -08:00
Justin Santa Barbara d8791acdba Pause between launching master and minions
Salt does not retry if master is not ready, apparently
2015-01-29 21:08:27 -05:00
Brendan Burns 98279cf677 Merge pull request #3966 from ghodss/patch-4
Update README.md to include Godoc and Travis links
2015-01-29 18:07:46 -08:00
Sam Ghods 9b17d62192 Update README.md to include Godoc and Travis links 2015-01-29 18:04:31 -08:00
Brendan Burns a20ca78fb3 Update etcd to version 2.0.0 2015-01-29 17:53:53 -08:00
Justin Santa Barbara eb1d9d0a46 Add missing = to --machines arg 2015-01-29 20:35:36 -05:00
Justin Santa Barbara 5d864b006a Add aws to list of clouds that use tokens 2015-01-29 20:35:36 -05:00
Justin Santa Barbara 51225c76da Apply jbeda's conditional tar fix 2015-01-29 20:35:36 -05:00
Justin Santa Barbara 3fb61912aa Quote args in /srv/salt-overlay/pillar, add new vars 2015-01-29 20:35:36 -05:00
Justin Santa Barbara bb406ce87f Allow # of minions to be configured 2015-01-29 20:35:36 -05:00
Justin Santa Barbara 8058632f5f Move tag creation & retry logic to a function 2015-01-29 20:35:36 -05:00
Justin Santa Barbara 993071dd64 Add aws to some e2e tests 2015-01-29 20:35:35 -05:00
Justin Santa Barbara 2f195578cc Create /srv/kuberentes/known_tokens.csv on AWS 2015-01-29 20:35:35 -05:00
Justin Santa Barbara d20188c6d4 Create shared secret in AWS scripts 2015-01-29 20:35:35 -05:00
Justin Santa Barbara bb0431dce8 Pass cloud & cloud_config to kube-apiserver for AWS 2015-01-29 20:35:35 -05:00
Brian Grant 8025d46cce Merge pull request #3927 from brendandburns/podcache
Transform the podCache into a write-through cache.
2015-01-29 17:28:35 -08:00
Satnam Singh 242b281279 Merge pull request #3962 from thockin/e2e
Maybe make services e2e test more resilient to GCE errors
2015-01-29 17:07:21 -08:00
Jeff Lowdermilk 93ef8b8bcb Make kubectl factory build clients for version
Fix ClientConfigForVersion to actually use provided version.
2015-01-29 17:04:14 -08:00
Satnam Singh 08ce8e80ad Merge pull request #3964 from brendandburns/fixer
Reverse the order of detaching and removing the pd disk.
2015-01-29 16:47:27 -08:00
Justin Santa Barbara e5d5671df0 Work-around for archive bug in SaltStack 2014.7.1
SaltStack 2014.7.1 double-quotes tar filenames which means the file can't
be found.  A workaround is not to specify tar_options, which hits a different
code path.  But that breaks the older version of SaltStack that GCE is locked
to, hence we need the version conditional (thanks @jbeda)

Fixes issue #3932
2015-01-29 19:43:01 -05:00
Brendan Burns a0b8429d2e Reverse the order of unmounting and removing the pd disk.
This should mean that we retry detaching if the original detach fails for some reason.
2015-01-29 16:13:12 -08:00
Clayton Coleman c1a5e14270 Provide a better error when Kubelet pod status is unexpected
Treat HTTP errors with respect, provide a distinct error message
2015-01-29 19:05:41 -05:00
Tim Hockin a1b51d9165 Maybe make services e2e test more resilient to GCE errors 2015-01-29 15:50:46 -08:00
Brian Grant 0345211e0c Merge pull request #3921 from nikhiljindal/OperationClean
Some more operations code cleanup
2015-01-29 14:54:05 -08:00
Clayton Coleman d072232d4a Allow client.Config to be used for HTTP2 and WebSocket connections
client.Config describes how to make a client connection to a server
for HTTP traffic, but for connection upgrade scenarios cannot be
used because the underlying http.Transport object can't allow the
connection to be hijacked. Reorganize the TLS and connection wrapper
methods so that a sophisticated client can do:

    cfg := &client.Config{...} // from somewhere
    tlsConfig, _ := client.TLSConfigFor(cfg)
    _ := conn.Dial(...)
    rt := MyRoundTripper() // some func that implements grabbing requests
    wrapper, _ := client.HTTPWrappersFor(cfg)
    req := &http.Request{}
    req.Header.Set("Connection-Upgrade", ...)
    _, := wrapper.RoundTrip(req)
    // rt has been invoked with a fully formed Req with auth
    rt.Req.Write(conn)
    // read response for upgrade

It would be good to have utility function that does more of this,
but mostly enabling the HTTP2/SPDY client exec function right now.
2015-01-29 17:43:09 -05:00
Dan Mace 5ee943d683 Support namespacing in cache.Store implementations
Support namespacing in cache.Store by framing the interface functions
around interface{} and providing a key function to each Store implementation.

Implementation of a fix for #2294.
2015-01-29 17:39:49 -05:00
Tim Hockin 35d59e6219 Merge pull request #3851 from satnam6502/bigcluster
Generate IP addresses for minions of large GCE clusters
2015-01-29 14:34:13 -08:00
Tim Hockin d01ea11a6e Merge pull request #3856 from smarterclayton/validation_logic_needs_cleanup
Validation of ObjectMeta is inconsistently applied
2015-01-29 14:12:44 -08:00
Clayton Coleman 053c2b2100 Fix grafana and heapster RC names 2015-01-29 16:26:39 -05:00
Tim Hockin 7603f88960 Merge pull request #3903 from brendandburns/e2e2
Add a simple script for running go e2e tests against existing clusters.
2015-01-29 11:51:36 -08:00
Brendan Burns 8723ee9ab5 Merge pull request #3909 from jbeda/hyperkube
Create new hyperkube package
2015-01-29 11:25:15 -08:00
Satnam Singh 42f907034a Merge pull request #3923 from brendandburns/fixer
Add some extra checking around a call to list pods.
2015-01-29 11:03:25 -08:00
Satnam Singh 0dcf1cea4a Merge pull request #3935 from brendandburns/shell_sucks
Put watch in a loop so that we grab all event logs, even if the watch hangs up.
2015-01-29 10:53:19 -08:00
Brendan Burns 0ad036e0eb Put watch in a loop so that we grab all event logs, even if the watch hangs up. 2015-01-29 09:56:20 -08:00
Satnam Singh 4fa0baa7df Merge pull request #3925 from filbranden/e2e_ginkgo_tests_subset
Make cmd/e2e -t work again
2015-01-29 09:25:13 -08:00
Satnam Singh 99d2c93b96 Merge pull request #3929 from filbranden/e2e_liveness_hermetic
Make liveness e2e test more hermetic
2015-01-29 08:41:57 -08:00
Filipe Brandenburger a58b1ca39c Make liveness e2e test more hermetic
Avoid importing the YAML files from the examples/ tree, instead just
define the api.Pod structs in the Go source code.

Tested by running the TestLivenessHttp and TestLivenessExec tests
against a test cluster.
2015-01-29 00:09:12 -08:00
Brendan Burns 2d4e72f1fa Add some extra checking around a call to list pods. 2015-01-28 22:22:54 -08:00
Brendan Burns 3624b65f1c Transform the podCache into a write-through cache.
Don't always clear podInfo, instead occasionally garbage collect.
2015-01-28 22:15:23 -08:00
Filipe Brandenburger fa845030c4 Make cmd/e2e --test work after the conversion to Ginkgo
Use the --ginkgo.focus flag which accepts a regexp to define which tests
should be run. Create a regexp matching a full word that is exactly one
of the test names passed as -t parameters.

Tested with cmd/e2e -t TestLivenessHttp -t TestLivenessExec, confirmed
that 2 tests were executed and 9 were skipped.
2015-01-28 21:11:23 -08:00
nikhiljindal dc92d3c7a2 Cleaning up the operations code in client 2015-01-28 21:04:16 -08:00
Filipe Brandenburger 47739abb30 Make it possible to re-enable color output in Ginkgo e2e tests
Instead of forcing the NoColor flag to on at runtime, make it default to
being on in a way that it's still possible to override it by passing e2e
the --ginkgo.noColor=false command-line flag.

Tested by running the tests with and without the flag and confirming
that both worked as expected.
2015-01-28 20:25:46 -08:00
Brendan Burns ca6de16df7 Merge pull request #3915 from brendandburns/fixer
Fix update.sh
2015-01-28 20:02:58 -08:00
Brendan Burns 9f5ca3f6ac Fix update.sh 2015-01-28 20:00:47 -08:00
Brian Grant fcb1cd30ff Merge pull request #3891 from nikhiljindal/Operation
Deleting OperationHandler for handling /operation endpoint on server
2015-01-28 17:01:37 -08:00
roberthbailey 9bfdfa0522 Merge pull request #3902 from satnam6502/killshell
Remove basic.sh and private.sh shell e2e tests
2015-01-28 16:51:22 -08:00
Amy Unruh c263de2b0b addition of mysql-wordpress-pd example 2015-01-28 16:50:00 -08:00
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
Alex Mohr dff727c50b Merge pull request #3875 from vmarmol/metadata
Using metadata library for GCE metadata fetch.
2015-01-28 16:38:43 -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