From 55b044c2f460c4ad08617fec2322218811dcea93 Mon Sep 17 00:00:00 2001 From: MohammedAbdi Date: Thu, 1 Aug 2024 13:30:29 -0400 Subject: [PATCH] print initial stored activecontainerids and energy from etcd Signed-off-by: MohammedAbdi --- internal/controller/labelgroup_controller.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/controller/labelgroup_controller.go b/internal/controller/labelgroup_controller.go index 3cf4c63..0fcab4c 100644 --- a/internal/controller/labelgroup_controller.go +++ b/internal/controller/labelgroup_controller.go @@ -215,6 +215,9 @@ func (r *LabelGroupReconciler) Reconcile(ctx context.Context, req ctrl.Request) // 1) Get the current total energy from ETCD var totalEnergy float64 + r.Logger.V(5).Info(fmt.Sprintf("[Reconcile-Aggregating] Initial Stored ActiveContainerIds ETCD: %#v", labelGroup.Status.ActiveContainerIds)) // trace + r.Logger.V(5).Info(fmt.Sprintf("[Reconcile-Aggregating] Initial Stored Total Energy from ETCD: %s", labelGroup.Status.TotalEnergy)) // trace + if value, err := strconv.ParseFloat(labelGroup.Status.TotalEnergy, 64); err == nil { totalEnergy = value } else {