Skip to content

Commit

Permalink
add log for number of target nginx replicas (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverMKing authored Dec 1, 2023
1 parent 489fa81 commit 6f80743
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controller/nginxingress/nginx_ingress_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ func (n *nginxIngressControllerReconciler) Reconcile(ctx context.Context, req ct
lgr.Error(err, "unable to reconcile resource")
return ctrl.Result{}, fmt.Errorf("reconciling resource: %w", err)
}
if replicas := resources.Deployment.Spec.Replicas; replicas != nil {
lgr.Info(fmt.Sprintf("nginx deployment targets %d replicas", *replicas), "replicas", *replicas)
}

return ctrl.Result{}, nil
}
Expand Down

0 comments on commit 6f80743

Please sign in to comment.