Commit Graph

1209 Commits

Author SHA1 Message Date
Daniel Smith
b630c7bcb4 Implement watch.Interface via etcd. 2014-07-23 15:04:08 -07:00
Daniel Smith
cac3d1fb3b Merge pull request #590 from smarterclayton/test_example_syntax
Add unit tests for example syntax
2014-07-23 13:59:35 -07:00
Daniel Smith
e2e2ce44c1 Merge pull request #587 from VojtechVitek/data_race
Fix data race in kubelet fake_docker_client
2014-07-23 13:00:55 -07:00
Clayton Coleman
044779126b Add unit tests for example syntax
Tests api/examples, examples, and any embedded json in readme.
2014-07-23 15:18:55 -04:00
Vojtech Vitek (V-Teq)
1f78b0fc6f Fix reslice and data races in kubelet fake_docker_client
- Fix reslice in Pull() to remove the just returned error
- Fix data races found during the integration testing
- Remove one-liner helper method for better readability
2014-07-23 20:44:42 +02:00
Daniel Smith
7a8e268c0e Merge pull request #548 from kelseyhightower/improve_kubecfg_tests
Use table testing for makePort tests
2014-07-23 09:50:21 -07:00
Daniel Smith
44e4066958 Merge pull request #583 from vmarmol/update-cadvisor
Update the cAdvisor manifest for the new volume type.
2014-07-23 09:48:27 -07:00
Daniel Smith
57b258e44f Merge pull request #581 from smarterclayton/fix_introduced_bugs_in_kubecfg
Restore behavior of trimming / from kubecfg url
2014-07-23 09:40:24 -07:00
Daniel Smith
c3625fd218 Merge pull request #582 from smarterclayton/reference_e2e_tests
Describe e2e-test.sh in the README
2014-07-23 09:30:18 -07:00
Victor Marmol
db38b114fe Update the cAdvisor manifest for the new volume type.
Closes #559
2014-07-23 08:38:38 -07:00
Clayton Coleman
1c8204b21f Describe e2e-test.sh in the README 2014-07-23 11:21:55 -04:00
Clayton Coleman
586a9f4356 Restore behavior of trimming / from kubecfg url
Also make the output and validation of input better for kubecfg api calls.
Kubecfg will now display a usage argument if the URL is incorrect or an
unrecognized storage type is passed.
2014-07-23 11:16:41 -04:00
Clayton Coleman
60aa8639fa Merge pull request #578 from kelseyhightower/readme_fixes
Update the broken pod.json example in the README
2014-07-23 10:42:10 -04:00
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