From da5abb0e2f1388c54c65d46ade2c8156e4eb1c91 Mon Sep 17 00:00:00 2001 From: MohammedAbdi Date: Thu, 1 Aug 2024 11:49:47 -0400 Subject: [PATCH] set energy to constant Signed-off-by: MohammedAbdi --- internal/controller/labelgroup_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/controller/labelgroup_controller.go b/internal/controller/labelgroup_controller.go index ca01e74..d122ec1 100644 --- a/internal/controller/labelgroup_controller.go +++ b/internal/controller/labelgroup_controller.go @@ -238,7 +238,8 @@ func (r *LabelGroupReconciler) Reconcile(ctx context.Context, req ctrl.Request) // 3) Add the values of the remaining new containers to the total energy and update the list of active containers for containerId, newValue := range metricValues { - totalEnergy += newValue + // totalEnergy += newValue + totalEnergy = 100 labelGroup.Status.ActiveContainerIds[containerId] = newValue }