Update kubelet_node_status.go
This commit is contained in:

committed by
GitHub

parent
ad87989378
commit
ee73fcdadb
@@ -321,7 +321,7 @@ func (kl *Kubelet) tryUpdateNodeStatus() error {
|
|||||||
// specified name are handled efficiently by apiserver). Once
|
// specified name are handled efficiently by apiserver). Once
|
||||||
// apiserver supports GET from cache, change it here.
|
// apiserver supports GET from cache, change it here.
|
||||||
opts := api.ListOptions{
|
opts := api.ListOptions{
|
||||||
FieldSelector: fields.Set{"metadata.name": string(kl.nodeName)}.AsSelector(),
|
FieldSelector: fields.Set{"metadata.name": string(kl.nodeName)}.AsSelector(),
|
||||||
ResourceVersion: "0",
|
ResourceVersion: "0",
|
||||||
}
|
}
|
||||||
nodes, err := kl.kubeClient.Core().Nodes().List(opts)
|
nodes, err := kl.kubeClient.Core().Nodes().List(opts)
|
||||||
|
Reference in New Issue
Block a user