code: func updateLastTransitionTime(status, oldStatus *v1.PodStatus, conditionType v1.PodConditionType) {
  	_, condition := podutil.GetPodCondition(status, conditionType)
  	if condition == nil {
  		return
  	}
  	// Need to set LastTransitionTime.
  	lastTransitionTime := metav1.Now()
  	_, oldCondition := podutil.GetPodCondition(oldStatus, conditionType)
  	if oldCondition != nil && condition.Status == oldCondition.Status {
  		lastTransitionTime = oldCondition.LastTransitionTime
  	}
  	condition.LastTransitionTime = lastTransitionTime
  }
docs: // updateLastTransitionTime updates the LastTransitionTime of a pod condition.