mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Merge pull request #37939 from yarntime/fix_typo_in_node_status_updater
Automatic merge from submit-queue (batch tested with PRs 37997, 37939, 37990, 36700, 37258) fix typo in node_status_updater fix typo.
This commit is contained in:
commit
fb7e9d901d
@ -67,7 +67,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,
|
||||||
@ -121,7 +121,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