code: func (a *HorizontalController) setStatus(hpa *autoscalingv2.HorizontalPodAutoscaler, currentReplicas, desiredReplicas int32, metricStatuses []autoscalingv2.MetricStatus, rescale bool) {
  	hpa.Status = autoscalingv2.HorizontalPodAutoscalerStatus{
  		CurrentReplicas: currentReplicas,
  		DesiredReplicas: desiredReplicas,
  		LastScaleTime:   hpa.Status.LastScaleTime,
  		CurrentMetrics:  metricStatuses,
  		Conditions:      hpa.Status.Conditions,
  	}
  
  	if rescale {
  		now := metav1.NewTime(time.Now())
  		hpa.Status.LastScaleTime = &now
  	}
  }
docs: // setStatus recreates the status of the given HPA, updating the current and
  // desired replicas, as well as the metric statuses