Kelsey Hightower
a00dcc1f70
Update the broken pod.json example in the README
2014-07-23 07:24:30 -07:00
Kelsey Hightower
609050da39
Use table testing for makePort tests
2014-07-23 00:18:09 -07:00
brendandburns
245feaf722
fix json.
2014-07-23 00:04:28 -07:00
brendandburns
46ac0aa81d
modified to drop the leading '/'
...
Since it doesn't work @ head.
2014-07-22 23:56:43 -07:00
brendandburns
b98b8295f4
Merge pull request #576 from brendandburns/run
...
Actually fix kubecfg.
2014-07-22 23:53:47 -07:00
Brendan Burns
c3f313784d
Actually fix kubecfg.
2014-07-22 23:40:55 -07:00
Daniel Smith
212b8f6145
Merge pull request #574 from brendandburns/run
...
Add a name to containers created by RunController so that validation works
2014-07-22 23:02:49 -07:00
Brendan Burns
fcb9201c3b
Add a name to containers created by RunController so that validation works.
2014-07-22 22:58:41 -07:00
brendandburns
09adbb962d
Merge pull request #572 from brendandburns/fix
...
Change a != to a < to fix kubecfg.
2014-07-22 22:54:09 -07:00
Brendan Burns
cf486a53b6
Change a != to a < to fix kubecfg.
2014-07-22 22:45:17 -07:00
Daniel Smith
ec0f639a21
Merge pull request #551 from erictune/private_kubelet
...
Private kubelet
2014-07-22 18:58:43 -07:00
Daniel Smith
0ef600c8cd
Merge pull request #569 from smarterclayton/fix_bad_watch_in_etcd
...
Kubelet etcd watch skipping indices
2014-07-22 18:23:00 -07:00
Daniel Smith
08b5066fcf
Merge pull request #570 from smarterclayton/kubecfg_cant_update
...
kubecfg doesn't allow updates because of path checks
2014-07-22 18:21:14 -07:00
Dawn Chen
c874faa1d1
Merge pull request #568 from smarterclayton/update_examples
...
Some examples don't pass Manifest validation
2014-07-22 17:28:53 -07:00
Clayton Coleman
fbd7bc375f
kubecfg doesn't allow updates because of path checks
...
Check for 1 path segment on create/list, 2 on update/delete, and
allow any number of path segments on get (for now).
Also pretty prints the list of actual types that are supported for
create/update, which today corresponds to the list of types that
are supported period.
2014-07-22 20:25:06 -04:00
Clayton Coleman
bc0ac1e81b
Kubelet etcd watch skipping indices
...
The next index to watch should always be current+1 if we got a
response from etcd, but otherwise it should always be current.
Moved the increment into fetchNextState which returns the next
index to watch for (or the same if an error occurs)
2014-07-22 20:24:18 -04:00
Clayton Coleman
d9d92679c3
Some examples don't pass Manifest validation
2014-07-22 20:17:14 -04:00
Dawn Chen
e7f4460ab8
Merge pull request #562 from dchen1107/cleanup
...
Fixed kube-up.sh to point to the right place.
2014-07-22 16:52:21 -07:00
Eric Tune
ded67ead1e
Make Kubelet type members private and provide New functions.
2014-07-22 14:40:59 -07:00
Dawn Chen
47ad71f92d
HandleIndex when URL.Path == "/"
2014-07-22 14:12:16 -07:00
Jeff Mendoza
cc471c29f3
Add gce grain to salt config, change apiserver salt config.
2014-07-22 10:30:00 -07:00
Clayton Coleman
2a2fdb4773
Merge pull request #505 from lavalamp/clientWatch
...
Add client watch capability
2014-07-21 22:11:02 -04:00
Clayton Coleman
e40736e945
Merge pull request #555 from smarterclayton/health
...
integrate minion health checking and caching.
2014-07-21 22:02:09 -04:00
Brendan Burns
6c734b1c55
integrate minion health checking and caching.
2014-07-21 21:52:33 -04:00
Daniel Smith
aaf0180ef4
Merge pull request #356 from smarterclayton/refactor_config_sources
...
Use config sources for Kubelet, switch to podFullName
2014-07-21 18:43:07 -07:00
Clayton Coleman
7767c2a2ac
Switch the Kubelet to use kubelet/config
...
Also transfer the Kubelet from using ContainerManifest.ID to source specific
identifiers with namespacing. Move goroutine behavior out of kubelet/ and
into integration.go and cmd/kubelet/kubelet.go for better isolation.
2014-07-21 21:27:26 -04:00
Clayton Coleman
09294b90ce
Refactor Kubelet config sources for clarity
...
Create a new "Pod" concept which can identify pods from
many config sources.
2014-07-21 21:18:36 -04:00
Jeff Mendoza
6cebe4443a
Update salt config for apiserver to support Azure.
2014-07-21 16:50:47 -07:00
Daniel Smith
91375f4c04
Split httpWatcher into watch.StreamWatcher and tools.APIEventDecoder.
2014-07-21 16:07:58 -07:00
Daniel Smith
dbd0d419df
Add watch capability to our client.
...
Next steps: Make an etcd watcher... decide on a state field for pods...
move the scheduler to its own binary.
2014-07-21 16:07:58 -07:00
Daniel Smith
f672edd1cf
Merge pull request #457 from dchen1107/minionlogs
...
Add support to query kubelet's logs and cadvisor's stats through apiserver by passing rawquery
2014-07-21 16:02:44 -07:00
Daniel Smith
5f13c4b048
Merge pull request #545 from kelseyhightower/heath_tests
...
Improve test coverage for the health package and remove mocks
2014-07-21 15:49:10 -07:00
Daniel Smith
3f33bf78c5
Merge pull request #539 from vmarmol/pause
...
Add a pause image for the net container.
2014-07-21 15:47:39 -07:00
Kelsey Hightower
fce90dc761
Improve test coverage for the health package and remove mocks
...
The current tests for the health package utilize a fake HTTP client
for testing health checks and only cover a limited set of test cases.
This patch removes the need for mocks by using the httptest package
from the standard library. After removing the fake HTTP client a bug
was found in the health.Check function; it incorrectly assumes that
a http.Response is always non-nil. Fix the issue by moving the defer
that closes the http.Response.Body after error handling.
Related tests in the registry package have be refactored to work with
the changes made to the health.Check function. All methods that implement
the health.HTTPGetInterface interface now return a http.Response with
with a noop http.Response.Body.
This patch does not introduce any changes in behavior.
2014-07-21 15:30:29 -07:00
Dawn Chen
dc921b8c65
comment changes
2014-07-21 14:46:59 -07:00
Dawn Chen
064237a5b8
Add support to query kubelet's logs and cadvisor's stats through
...
apiserver by passing rawquery.
minor changes
Fixed a minor rebase issues.
Using ioutil.ReadAll instead of httputil.DumpResponse
2014-07-21 11:52:32 -07:00
Victor Marmol
88317efb42
Add a pause image for the net container.
...
The pause image is a 240KB image that simply pauses waiting on a signal.
Use this for the net container which only needs to act as a placeholder.
Current net image is ~2.5MB. From my tests, this reduces startup time
for the net container from ~14s to ~6s.
2014-07-21 10:28:49 -07:00
Daniel Smith
7910ae8159
Merge pull request #538 from kelseyhightower/replication_controller_test
...
remove unnecessary expectNoError helper function
2014-07-20 23:02:56 -07:00
Daniel Smith
d11b6246a1
Merge pull request #547 from kelseyhightower/kubelet_tests
...
Add test cases for Docker image name parsing and cleanup
2014-07-20 20:55:33 -07:00
Daniel Smith
611824c3b7
Merge pull request #546 from kelseyhightower/kubecfg_tests
...
Remove unnecessary expectNoError helper function
2014-07-20 20:49:36 -07:00
Kelsey Hightower
67efa0a53a
Add test cases for Docker image name parsing and cleanup
...
The tests for Docker image name parsing are repetitive and do not
cover enough test cases.
Refactor the tests to use table testing and add additional test cases.
2014-07-20 19:22:54 -07:00
Kelsey Hightower
682efb7ca5
Remove unnecessary expectNoError helper function
...
This patch completes a TODO item for the kubecfg package test suite by
removing the expectNoError helper function, which does not reduce enough
typing to justify its usage.
2014-07-20 18:28:55 -07:00
Daniel Smith
b577f36492
Merge pull request #541 from kelseyhightower/httplog_test
...
add tests for the httplog package
2014-07-20 13:42:15 -07:00
Daniel Smith
78a9205277
Merge pull request #542 from kelseyhightower/heathz_tests
...
add tests for the healthz package
2014-07-20 12:43:53 -07:00
Kelsey Hightower
713cadac52
add tests for the healthz package
...
Currently there are no tests for the healthz package. This patch adds
an initial set of tests and improves test coverage.
2014-07-20 12:28:02 -07:00
Kelsey Hightower
a9e0b0d1a3
use %v instead of %#v when logging failures
2014-07-20 11:58:22 -07:00
Kelsey Hightower
34c80bb976
add tests for the httplog package
...
Currently there are no tests for the httplog package. This patch adds
an initial set of tests and improves test coverage.
2014-07-20 11:26:13 -07:00
Clayton Coleman
28b7b53c72
Merge pull request #529 from lavalamp/recursiveApiObj
...
Add APIObject for generic inclusion of API objects
2014-07-20 14:25:35 -04:00
Daniel Smith
2f73b87e8a
Merge pull request #540 from vmarmol/always-latest
...
If no tag was specified, pull "latest" explicitly.
2014-07-20 11:04:37 -07:00
Daniel Smith
d02e4d6036
Merge pull request #537 from kelseyhightower/kubecfg_comments
...
clean up code comments for the kubecfg command
2014-07-20 10:59:45 -07:00