mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
NC should log the whole node condition.
This commit is contained in:
parent
ea66c00522
commit
4d56bc34bd
@ -976,7 +976,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",
|
// If ReadyCondition changed since the last time we checked, we update the transition timestamp to "now",
|
||||||
// otherwise we leave it as it is.
|
// otherwise we leave it as it is.
|
||||||
if savedCondition.LastTransitionTime != observedCondition.LastTransitionTime {
|
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()
|
transitionTime = nc.now()
|
||||||
} else {
|
} else {
|
||||||
transitionTime = savedNodeStatus.readyTransitionTimestamp
|
transitionTime = savedNodeStatus.readyTransitionTimestamp
|
||||||
|
Loading…
Reference in New Issue
Block a user