From c056d82e52f70e7ca2351253a6604061e5dc5a27 Mon Sep 17 00:00:00 2001 From: randytqwjp Date: Thu, 28 Nov 2024 13:50:23 +0900 Subject: [PATCH] clean up code --- pkg/hpa/service.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/hpa/service.go b/pkg/hpa/service.go index 4d3b1fb..2f858a0 100644 --- a/pkg/hpa/service.go +++ b/pkg/hpa/service.go @@ -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