Skip to content

Commit

Permalink
chore: Report node allocatable capacity as part of log on register/in…
Browse files Browse the repository at this point in the history
…itialize (#1022)
  • Loading branch information
jonathan-innis authored Feb 17, 2024
1 parent 985ac2e commit 144ce31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/controllers/nodeclaim/lifecycle/initialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (i *Initialization) Reconcile(ctx context.Context, nodeClaim *v1beta1.NodeC
return reconcile.Result{}, err
}
}
logging.FromContext(ctx).Infof("initialized nodeclaim")
logging.FromContext(ctx).With("allocatable", node.Status.Allocatable).Infof("initialized nodeclaim")
nodeClaim.StatusConditions().MarkTrue(v1beta1.Initialized)
metrics.NodeClaimsInitializedCounter.With(prometheus.Labels{
metrics.NodePoolLabel: nodeClaim.Labels[v1beta1.NodePoolLabelKey],
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/nodeclaim/lifecycle/registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (r *Registration) Reconcile(ctx context.Context, nodeClaim *v1beta1.NodeCla
if err = r.syncNode(ctx, nodeClaim, node); err != nil {
return reconcile.Result{}, fmt.Errorf("syncing node, %w", err)
}
logging.FromContext(ctx).Debugf("registered nodeclaim")
logging.FromContext(ctx).Infof("registered nodeclaim")
nodeClaim.StatusConditions().MarkTrue(v1beta1.Registered)
nodeClaim.Status.NodeName = node.Name

Expand Down

0 comments on commit 144ce31

Please sign in to comment.