Skip to content

Commit

Permalink
Fix the kubelet node watch
Browse files Browse the repository at this point in the history
  • Loading branch information
yujuhong committed Apr 4, 2015
1 parent dbd7b18 commit 0e1bd18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kubelet/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0e1bd18

Please sign in to comment.