mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
Update kubelet_node_status.go
This commit is contained in:
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user