Skip to content

Commit

Permalink
Fixed resetting last scale time in HPA status.
Browse files Browse the repository at this point in the history
Fixed resetting last scale time in HPA status. Fixes kubernetes#16275.
  • Loading branch information
jszczepkowski committed Oct 27, 2015
1 parent dbb37d9 commit d574aa1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/podautoscaler/horizontal.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ func (a *HorizontalController) reconcileAutoscaler(hpa extensions.HorizontalPodA
CurrentReplicas: currentReplicas,
DesiredReplicas: desiredReplicas,
CurrentCPUUtilizationPercentage: currentUtilization,
LastScaleTime: hpa.Status.LastScaleTime,
}
if rescale {
now := unversioned.NewTime(now)
Expand Down

0 comments on commit d574aa1

Please sign in to comment.