Commit Graph

13639 Commits

Author SHA1 Message Date
Clayton Coleman
dd24b013cb Use if err := ; err != nil instead of two lines 2014-12-07 20:48:16 -05:00
Clayton Coleman
84d84c50c2 Add a strongly typed error for unrecognized kind/type/version 2014-12-07 20:48:16 -05:00
Tim Hockin
acc6b95c21 Add functions to get kubelet directories.
Gets rid of some magic constants and makes volume plugins (coming later)
cleaner.
2014-12-06 11:00:19 -08:00
Mike Danese
722abf1a95 - make cadvisor port configurable on the kubelet.
- added cadvisor port documentation.
2014-12-06 09:48:08 -08:00
Deyuan Deng
2ecea9ce7b Query hostIP for instances 2014-12-05 23:26:33 -05:00
derekwaynecarr
ef25520baa make selfLink namespace aware 2014-12-05 17:37:11 -05:00
Brendan Burns
b811eb8303 Merge pull request #2760 from liggitt/bindata_bump
Add script to build ui assets, rebuild with latest go-bindata
2014-12-05 14:09:10 -08:00
bgrant0607
b824eb0350 Merge pull request #2771 from rlarocque2/print_synccloud_errors
Print SyncCloud errors
2014-12-05 13:46:10 -08:00
bgrant0607
f95503dc2d Merge pull request #2767 from ironcladlou/watch-error-handling
Log ErrUnexpectedEOF from watches as warnings
2014-12-05 13:43:26 -08:00
Dawn Chen
73ebc9e714 Merge pull request #2769 from jdef/docker_noname
avoid panics when docker CT has no name
2014-12-05 13:39:59 -08:00
bgrant0607
cf7f3de767 Merge pull request #2762 from rajdeepd/master
Added a New test case for GetMinion
2014-12-05 13:24:24 -08:00
James DeFelice
76ef747927 avoid panics when docker CT has no name 2014-12-05 15:48:25 -05:00
Dan Mace
0ad8342a55 Log ErrUnexpectedEOF from watches as warnings
Watches are often established via long-running HTTP GET requests which
will inevitably time out during the normal course of operations. When
the watches time out, an io.EOF or an io.ErrUnexpectedEOF will bubble
up to client components such as StreamWatcher and Reflector. Treat EOF
as a clean watch termination. Treat ErrUnexpectedEOF as a less-clean
but non-fatal watch termination and log the event at the warning level.

This greatly reduces the amount of log noise generated during what is
ultimately normal operation, and adds the flexibility for the operator
to make a distinction between the EOF conditions if so desired (by
adjusting the logging level).
2014-12-05 15:03:07 -05:00
Richard Larocque
51efd38e75 Print SyncCloud errors
This small change would have saved me a lot of time while investigating
issue #2746.
2014-12-05 11:50:21 -08:00
Rajdeep Dua
2791a92f2c Added a New test case for GetMinion 2014-12-05 01:49:43 -08:00
Jordan Liggitt
4ab41f5be8 Add script to build ui assets, rebuild with latest go-bindata 2014-12-04 22:38:00 -08:00
Deyuan Deng
76552423f9 Move watch filter into storage level 2014-12-04 20:15:27 -05:00
Jordan Liggitt
22eee15fe7 Remove uint64 bitshift workaround 2014-12-04 15:00:23 -08:00
Daniel Smith
b765d6038a Merge pull request #2747 from erictune/cleanup6
Rename util.config.Watcher -> util.config.Broadcaster.
2014-12-04 11:12:04 -08:00
Daniel Smith
df98babf6e Merge pull request #2748 from erictune/clean7
Rename watch.Mux -> watch.Broadcaster
2014-12-04 11:09:43 -08:00
bgrant0607
623964456e Merge pull request #2743 from mikedanese/etcd-kubernetes-bug
fixed bug in tools.NewEtcdClientStartServerIfNecessary
2014-12-04 09:06:27 -08:00
bgrant0607
d67647b078 Merge pull request #2732 from rajdeepd/master
Added test case for ServerAPIVersions
2014-12-04 08:26:29 -08:00
Eric Tune
3f285269cc Rename watch.Mux -> watch.Broadcaster
A few reasons:
- Mux is already widely used in the codebase to refer to a http handler mux.
- Original meaning of Mux was something which sent a chose one of several inputs to
  and output.  This sends one output to all outputs.  Broadcast captures that idea
  better.
- Aligns with similar class config.Broadcaster (see #2747)
2014-12-04 00:30:51 -08:00
Eric Tune
64f1084c1a Rename util.config.Watcher -> util.config.Broadcaster.
Watch is a widely used term in the codebase, which doesn't capture
the key feature of this type: broadcasting a change to several
listeners.
2014-12-04 00:10:27 -08:00
Tim Hockin
c31b3f04de Merge pull request #2722 from thockin/iptables
strip quotes in back-compat iptables
2014-12-03 16:10:00 -08:00
Daniel Smith
6cb26e17a4 Merge pull request #2697 from erictune/no_accept_err
Proxy: Avoid log error.  Simplify locking.
2014-12-03 14:06:17 -08:00
Daniel Smith
5466c06b3a Merge pull request #2733 from erictune/handle_error
Handle error from watch.
2014-12-03 14:02:54 -08:00
Mike Danese
a98faa1f62 fixed bug in tools.NewEtcdClientStartServerIfNecessary 2014-12-03 12:58:03 -08:00
Eric Tune
909f82f463 Proxy: Avoid log error. Simplify locking.
Don't log an error when Accept failed because the interface (portal)
was just removed.

Don't pass around a pointer to a serviceInfo since another thread
deletes those.  Instead, just check if service name is still in the
service map.

Delete the locking on the serviceInfo object since it is only used
by the "main" proxier thread.
2014-12-03 12:34:54 -08:00
Eric Tune
deb101a1fb Handle error from watch.
A watch of the API can return an api.Status rather than the watched
obejct type.  This code didn't handle that.

Tested with services e2e test (in conjunction with other PR).
2014-12-03 12:33:26 -08:00
Daniel Smith
7aaf76af6e Merge pull request #2661 from smarterclayton/allow_loops_to_exit
Add a util.Forever variant that ends on a stop channel
2014-12-03 11:52:59 -08:00
Victor Marmol
b1c7893916 Merge pull request #2683 from jimmidyson/cadvisor-0.6.2
Fixes #2681: update to cadvisor 0.6.2
2014-12-04 03:48:40 +08:00
Tim Hockin
b1470b6672 strip quotes in back-compat iptables 2014-12-03 08:34:34 -08:00
Clayton Coleman
ff173d013a Merge pull request #2682 from mfojtik/cmd_public
Export kubectl/cmd methods
2014-12-03 08:52:04 -06:00
Michal Fojtik
17e24aed47 Export GetKubeNamespace function from kubectl 2014-12-03 13:15:48 +01:00
Daniel Smith
4acc23cbc4 Merge pull request #2734 from erictune/cleanup2
Use plus-v format for some complex structures.
2014-12-02 22:53:52 -08:00
Eric Tune
9964410f77 Use plus-v format for some complex structures. 2014-12-02 22:13:08 -08:00
Rajdeep Dua
e47e1ee025 Added test case for ServerAPIVersions 2014-12-02 21:55:44 -08:00
Daniel Smith
ffcbe2fa10 Merge pull request #2674 from mattmoor/quiet-credentialprovider
Make credentialprovider less verbose about benign errors.
2014-12-02 18:25:03 -08:00
Sam Ghods
6399854240 Remove unused YAML tags and GetYAML/SetYAML methods
Unneeded after move to ghodss/yaml.
2014-12-02 16:25:28 -08:00
Sam Ghods
9a9a1e0939 Move from go-yaml/yaml to ghodss/yaml 2014-12-02 16:24:05 -08:00
Tim Hockin
f4b031d025 Merge pull request #2514 from thockin/label-ns
Add label key namespacing
2014-12-02 13:38:46 -08:00
Eric Tune
860d845d2c Merge pull request #2588 from lavalamp/fix4
Relax search criteria to find both pod & bound pod events
2014-12-02 09:40:32 -08:00
Craig Wickesser
1c02137f48 Update exec health check message logged
Update message logged after performing exec health check per #2708.
2014-12-02 07:15:02 -05:00
Brendan Burns
993ef88eec Merge pull request #2689 from brendandburns/standalone
Refactor kubelet, standalone k8s and integration test to all use the same code.
2014-12-01 21:53:41 -08:00
Daniel Smith
3b2fa9618d Relax search criteria to find both pod & bound pod events 2014-12-01 17:19:42 -08:00
Brendan Burns
85fbcdb981 Kubernetes version v0.6.0-dev 2014-12-01 16:26:48 -08:00
Brendan Burns
20a0d79bf4 Kubernetes version v0.6.0 2014-12-01 16:26:48 -08:00
Brendan Burns
d47b510104 Refactor kubelet, standalone k8s and integration test to all use the same code. 2014-12-01 15:37:21 -08:00
Brendan Burns
6b009f06cd Merge pull request #2635 from thockin/public-ip
Enable public IPs even in not createExternal...
2014-12-01 14:56:22 -08:00