Merge pull request #55685 from gyliu513/nc-log
Automatic merge from submit-queue (batch tested with PRs 56161, 56324, 55685, 56409, 55296). 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>. NC should log the whole node condition. **What this PR does / why we need it**: **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ``` /cc @gmarek
This commit is contained in:
		@@ -987,7 +987,7 @@ func (nc *Controller) tryUpdateNodeStatus(node *v1.Node) (time.Duration, v1.Node
 | 
			
		||||
		// If ReadyCondition changed since the last time we checked, we update the transition timestamp to "now",
 | 
			
		||||
		// otherwise we leave it as it is.
 | 
			
		||||
		if savedCondition.LastTransitionTime != observedCondition.LastTransitionTime {
 | 
			
		||||
			glog.V(3).Infof("ReadyCondition for Node %s transitioned from %v to %v", node.Name, savedCondition.Status, observedCondition)
 | 
			
		||||
			glog.V(3).Infof("ReadyCondition for Node %s transitioned from %v to %v", node.Name, savedCondition, observedCondition)
 | 
			
		||||
			transitionTime = nc.now()
 | 
			
		||||
		} else {
 | 
			
		||||
			transitionTime = savedNodeStatus.readyTransitionTimestamp
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user