Commit ebb98287 authored by Daniel Smith's avatar Daniel Smith

Merge pull request #6442 from yujuhong/node_watch

Fix the kubelet node watch
parents bfde7e07 0e1bd18b
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment