Merge pull request #6442 from yujuhong/node_watch

Fix the kubelet node watch
This commit is contained in:
Daniel Smith 2015-04-06 09:59:57 -07:00
commit ebb982878f

View File

@ -179,7 +179,7 @@ func NewMainKubelet(
if kubeClient != nil {
// TODO: cache.NewListWatchFromClient is limited as it takes a client implementation rather
// than an interface. There is no way to construct a list+watcher using resource name.
fieldSelector := fields.Set{"name": hostname}.AsSelector()
fieldSelector := fields.Set{"metadata.name": hostname}.AsSelector()
listWatch := &cache.ListWatch{
ListFunc: func() (runtime.Object, error) {
// TODO: Use List() with fieldSelector when it is supported.