Clayton Coleman
f91bfe2e00
Merge pull request #645 from brendandburns/integration
...
Add a sanity check for existing etcd servers to the integration test script
2014-07-27 19:48:04 -04:00
Clayton Coleman
5d12b63bdf
Merge pull request #650 from smarterclayton/use_constant_code
...
Use http.StatusInternalServerError instead of 500
2014-07-27 19:43:15 -04:00
Daniel Smith
a14a6f5a2c
Merge pull request #652 from kelseyhightower/fix_readme_typo
...
Fix typo in README
2014-07-27 15:18:15 -07:00
Daniel Smith
aa92dd7fb2
Add go fuzzer in preparation for testing. Also gofmt a few files that needed it.
2014-07-27 14:54:48 -07:00
Kelsey Hightower
87fa19cdfe
Remove extra test flags from all commands
...
Currently all commands are being build with extra flags. The extra
flags appear because of a direct import of the testing package from
the fake_etcd_client.go source file.
Remove the direct import of the testing package. Add a tools.T
interface to support existing behavior. Also clean up two TODO items
by remove using of the expectError and expectNoError functions.
Fixes #579
2014-07-27 14:19:18 -07:00
Kelsey Hightower
7b59845843
volume: improve test coverage and minor refactoring
...
The volume package does not test enough use-cases.
Improve test coverage by adding additional tests and refactoring
current tests to use table testing.
This change introduces a new error var to make testing unsupported
volume type errors easier.
This change does not introduce any changes in behavior.
2014-07-27 14:11:19 -07:00
Kelsey Hightower
fe7e9434b6
Fix typo in README
2014-07-27 13:36:23 -07:00
Clayton Coleman
7a63b53ee2
Allow API_PORT to be changed via hack/local-up
2014-07-27 15:38:12 -04:00
Clayton Coleman
1047c57c6d
Use http.StatusInternalServerError instead of 500
2014-07-27 15:37:03 -04:00
Kelsey Hightower
c860ac3afc
health: Improve test coverage
2014-07-27 08:44:59 -07:00
Brendan Burns
ea15e6709c
Add a sanity check for running etcd servers to the integration test script.
2014-07-26 22:31:30 -07:00
Kelsey Hightower
1ca199379f
kubecfg: improve tests around authentication
...
This change adds additional test coverage for the kubecfg
command. There is now a test for the case when the auth info
file does not exist. LoadAuthInfo tests have been refactored
to use table testing.
2014-07-26 22:21:17 -07:00
Kelsey Hightower
6d1be5f0ee
Add master.Config type and cleanup master configuration
...
Setting up a new master.Master instance requires passing
around too many arguments.
Add a master.Config type and group related master configs.
Refactor all commands to instantiate new masters using a
master.Config struct.
2014-07-26 22:07:24 -07:00
Daniel Smith
ab91e074d8
Merge pull request #644 from kelseyhightower/improve_httplog_test_coverage
...
httplog: Improve test coverage
2014-07-26 22:01:12 -07:00
Kelsey Hightower
200b2c0ba7
httplog: Improve test coverage
2014-07-26 21:17:10 -07:00
Rafael Chacón
b13f5a8f62
Solve issue with realpath on Mac OS X.
...
* realpath doesn't work on Mac OS systems. I found the following
workaround that should work in any distro. For more references see the
following: http://serverfault.com/questions/40144/how-can-i-retrieve-the-absolute-filename-in-a-shell-script-on-mac-os-x
2014-07-26 18:15:44 -07:00
Daniel Smith
8a5cc87df8
Merge pull request #638 from kelseyhightower/fix_multiple_response_write_headers
...
integration: Fix multiple response.WriteHeader calls
2014-07-26 16:50:47 -07:00
Kelsey Hightower
7a7dfeb85b
integration: Fix multiple response.WriteHeader calls
...
The current integration tests do not return after delegating
HTTP requests, as a result an extra call to response.WriteHeader
is made for every request.
Fix the issue by returning after delegating HTTP requests.
2014-07-26 16:09:15 -07:00
Daniel Smith
d102b9c845
Merge pull request #637 from kelseyhightower/fix-build-go
...
Fix hack/build-go.sh to work on all platforms
2014-07-26 15:37:56 -07:00
Kelsey Hightower
124b0e7ee6
Fix hack/build-go.sh to work on all platforms
...
Currently the hack/build-go.sh build script does not work
on OS X 10.9.x systems. This changes reverts back to building
one binary via a for loop.
2014-07-26 15:28:48 -07:00
brendandburns
57b583e03d
Merge pull request #633 from kelseyhightower/go1.3-build
...
Build binaries using Go 1.3
2014-07-26 12:34:32 -07:00
Kelsey Hightower
777eec9e62
Build binaries using Go 1.3
...
Currently binaries are built using Go 1.2.2, which results
in larger binaries than those produced by newer versions of
Go. The Go source archive used for the build process is not
verified against its SHA1 hash.
Update the build-image Dockerfile to use Go 1.3 to build all
binaries, as a result binaries are now 20% - 30% smaller. The
Go source archive used for building binaries is now verified
against its SHA1 hash.
2014-07-26 09:57:03 -07:00
James DeFelice
8e3e65e0f3
named container ports should have sane env var names
2014-07-25 17:55:52 -04:00
Daniel Smith
6b5690a259
Merge pull request #624 from dchen1107/cadvisor
...
update cadvisor client package which includes my fix for #608
2014-07-25 13:12:52 -07:00
Dawn Chen
c48f6dcb34
bump(github.com/google/cadvisor/client): fb8fa5d9353549ad265462c9e99affe93a3d5a22
2014-07-25 13:00:49 -07:00
brendandburns
25150947c8
Merge pull request #626 from smarterclayton/speed_up_build
...
Build all commands at the same time
2014-07-25 12:57:25 -07:00
Clayton Coleman
6f84fc06da
Remove cmd/ prefix on build-go.sh
...
Update places that depend on it.
2014-07-25 13:31:20 -04:00
Clayton Coleman
899127701e
Build all commands at the same time
...
In Go it's much more efficient to build several commands in the same
`go build` because the build has to load most of the dependency tree
each time. Roughly 50% on my machine:
Together (go1.2 on OS X):
real 0m4.049s
user 0m8.387s
sys 0m2.766s
Separate:
real 0m13.392s
user 0m12.420s
sys 0m6.882s
2014-07-25 13:23:23 -04:00
Daniel Smith
b3ecfbde43
Merge pull request #625 from smarterclayton/quotes_not_necessary
...
The quotes around the coverfile are unnecessary
2014-07-25 10:23:16 -07:00
Clayton Coleman
f7948015bd
The quotes around the file should not be necessary
...
In Go 1.2 on the Mac they result in a file created with actual
quotes.
2014-07-25 13:11:45 -04:00
Clayton Coleman
d32024870a
Extend validation for ReplicationController
...
Provide type safe checks for empty sets of selectors.
2014-07-25 12:15:17 -04:00
Clayton Coleman
bb1d362f8a
Merge pull request #622 from sjcarriere/master
...
list replicationControllers appears broken
2014-07-25 11:17:01 -04:00
Jeromy Carriere
9cad657b4c
Fix internalize for ReplicationControllerList. items were created
...
in a new var hiding the function-scoped var.
2014-07-25 10:44:45 -04:00
Clayton Coleman
fbd71c9c02
Merge pull request #535 from lavalamp/etcdWatcher
...
Etcd watcher
2014-07-25 08:40:05 -04:00
Daniel Smith
e3927b428d
Merge pull request #618 from brendandburns/async
...
Make replication controller synchronizations independent.
2014-07-24 22:58:45 -07:00
Brendan Burns
51c5907c55
Make individual controller actions asynchronous.
2014-07-24 22:57:56 -07:00
Brendan Burns
ae0baf3fab
Make replication controller synchronizations independent.
2014-07-24 22:46:04 -07:00
brendandburns
28b41dd875
Merge pull request #609 from lavalamp/fix
...
Fix kube-push.sh
2014-07-24 22:32:28 -07:00
Daniel Smith
321ce0e1ce
Merge pull request #565 from brendandburns/api2
...
Fork API types.
2014-07-24 22:29:57 -07:00
Clayton Coleman
dde108a737
Merge pull request #616 from brendandburns/example
...
Augment the update example to turn black if the server is not responding...
2014-07-25 01:16:33 -04:00
Brendan Burns
3723eb7629
Add kind and apiVersion to guestbook example.
2014-07-24 22:13:43 -07:00
brendandburns
4372b7a6f6
Merge pull request #610 from lavalamp/fix2
...
Make kubecfg work for minions.
2014-07-24 21:49:25 -07:00
Brendan Burns
bf5ae4bb9d
Fork API types.
2014-07-24 21:47:08 -07:00
Brendan Burns
854b9e14bd
Augment the update example to turn black if the server is not responding.
2014-07-24 21:46:35 -07:00
Daniel Smith
cb28f25b1b
Merge pull request #615 from lavalamp/fix3
...
Fix release.sh
2014-07-24 18:52:18 -07:00
Daniel Smith
354ccae7b3
Fix release.sh
2014-07-24 18:50:54 -07:00
Daniel Smith
f3b6090a38
Make kubecfg work for minions.
2014-07-24 18:04:55 -07:00
Daniel Smith
a6668f625b
Fix kube-push.sh
2014-07-24 17:50:19 -07:00
Daniel Smith
9e9d9b8913
Merge pull request #607 from smarterclayton/return_correct_content_type
...
Write the json content type for API responses
2014-07-24 15:27:31 -07:00
Daniel Smith
8881adc905
Merge pull request #606 from jonboulle/master
...
assorted formatting and typo fixes
2014-07-24 15:25:08 -07:00