mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
fix typo
This commit is contained in:
parent
545f749a0d
commit
df6e9db9d9
@ -65,7 +65,7 @@ func (nsu *nodeStatusUpdater) UpdateNodeStatuses() error {
|
|||||||
if nodeObj == nil || !exists || err != nil {
|
if nodeObj == nil || !exists || err != nil {
|
||||||
// If node does not exist, its status cannot be updated, log error and
|
// If node does not exist, its status cannot be updated, log error and
|
||||||
// reset flag statusUpdateNeeded back to true to indicate this node status
|
// reset flag statusUpdateNeeded back to true to indicate this node status
|
||||||
// needs to be udpated again
|
// needs to be updated again
|
||||||
glog.V(2).Infof(
|
glog.V(2).Infof(
|
||||||
"Could not update node status. Failed to find node %q in NodeInformer cache. %v",
|
"Could not update node status. Failed to find node %q in NodeInformer cache. %v",
|
||||||
nodeName,
|
nodeName,
|
||||||
@ -119,7 +119,7 @@ func (nsu *nodeStatusUpdater) UpdateNodeStatuses() error {
|
|||||||
_, err = nsu.kubeClient.Core().Nodes().PatchStatus(string(nodeName), patchBytes)
|
_, err = nsu.kubeClient.Core().Nodes().PatchStatus(string(nodeName), patchBytes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// If update node status fails, reset flag statusUpdateNeeded back to true
|
// If update node status fails, reset flag statusUpdateNeeded back to true
|
||||||
// to indicate this node status needs to be udpated again
|
// to indicate this node status needs to be updated again
|
||||||
nsu.actualStateOfWorld.SetNodeStatusUpdateNeeded(nodeName)
|
nsu.actualStateOfWorld.SetNodeStatusUpdateNeeded(nodeName)
|
||||||
return fmt.Errorf(
|
return fmt.Errorf(
|
||||||
"failed to kubeClient.Core().Nodes().Patch for node %q. %v",
|
"failed to kubeClient.Core().Nodes().Patch for node %q. %v",
|
||||||
|
Loading…
Reference in New Issue
Block a user