Commit 0e1bd18b authored by Yu-Ju Hong's avatar Yu-Ju Hong

Fix the kubelet node watch

parent dbd7b186
...@@ -179,7 +179,7 @@ func NewMainKubelet( ...@@ -179,7 +179,7 @@ func NewMainKubelet(
if kubeClient != nil { if kubeClient != nil {
// TODO: cache.NewListWatchFromClient is limited as it takes a client implementation rather // 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. // 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{ listWatch := &cache.ListWatch{
ListFunc: func() (runtime.Object, error) { ListFunc: func() (runtime.Object, error) {
// TODO: Use List() with fieldSelector when it is supported. // 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