Skip to content

Commit

Permalink
Expose autoscaler's recent activity times
Browse files Browse the repository at this point in the history
  • Loading branch information
kawych committed Mar 6, 2024
1 parent 4383f4c commit 960be9a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cluster-autoscaler/core/static_autoscaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,16 @@ func NewStaticAutoscaler(
}
}

// LastScaleUpTime returns last scale up time
func (a *StaticAutoscaler) LastScaleUpTime() time.Time {
return a.lastScaleUpTime
}

// LastScaleDownDeleteTime returns the last successful scale down time
func (a *StaticAutoscaler) LastScaleDownDeleteTime() time.Time {
return a.lastScaleDownDeleteTime
}

// Start starts components running in background.
func (a *StaticAutoscaler) Start() error {
a.clusterStateRegistry.Start()
Expand Down

0 comments on commit 960be9a

Please sign in to comment.