• Kubernetes Submit Queue's avatar
    Merge pull request #49608 from guangxuli/fix_nodestatus_update_prints · e87d8511
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    The printing level for node updated failed info should be used WARNING type
    
    **What this PR does / why we need it**:
    
    when I add the new node to the currnent kubernetes cluster, the kube-controller-manager always outputs the error msg( `Failed to set statusUpdateNeeded to needed true because nodeName="openpass-215"  does not exist)` and (`Failed to update statusUpdateNeeded field in actual state of world: Failed to set statusUpdateNeeded to needed true because nodeName="openpass-215"  does not exist`). 
    
    The results of invocation `updateNodeStatusUpdateNeeded` have two context, normal and abnormal.
    The normal context is adding a new node to the cluster, the abnormal context is really exist some errors.
    
    The printing level is confusing because it awlays outputs the error level msg.
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
    
    none
    
    /cc @saad-ali
    e87d8511
Name
Last commit
Last update
..
cache Loading commit data...
populator Loading commit data...
reconciler Loading commit data...
statusupdater Loading commit data...
testing Loading commit data...
util Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
attach_detach_controller.go Loading commit data...
attach_detach_controller_test.go Loading commit data...