Skip to content

Commit

Permalink
clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
randytqwjp committed Nov 28, 2024
1 parent 11d8cb8 commit c056d82
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/hpa/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -770,11 +770,6 @@ func (c *Service) checkHpaMetricStatus(ctx context.Context, currenthpa *v2.Horiz
currenthpa = currenthpa.DeepCopy()
conditions := currenthpa.Status.Conditions

if conditions[1].Type == "ScalingActive" && conditions[1].Status == "True" {
//switch to Auto mode since metrics are back
return true
}

if conditions[1].Type == "ScalingActive" && conditions[1].Status == "False" && conditions[1].Reason == "FailedGetResourceMetric" {
//switch to Emergency mode since no metrics
return false
Expand Down

0 comments on commit c056d82

Please sign in to comment.