Skip to content

Commit

Permalink
print initial stored activecontainerids and energy from etcd
Browse files Browse the repository at this point in the history
Signed-off-by: MohammedAbdi <[email protected]>
  • Loading branch information
mamy-CS committed Aug 1, 2024
1 parent 6ef6f12 commit 55b044c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/controller/labelgroup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 55b044c

Please sign in to comment.