Skip to content

Commit 36c4b19

Browse files
author
Ha Van
committed
[CORE-119212] - fix lint and logging
1 parent 72f2666 commit 36c4b19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/resources/kafka/poddisruptionbudget.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ func (r *Reconciler) podDisruptionBudgetControllers(log logr.Logger) (runtime.Ob
6060
minAvailable, err := r.computeControllerMinAvailable()
6161

6262
if err != nil {
63+
log.Error(err, "error occurred during computing minAvailable for controllers PDB")
6364
return nil, err
6465
}
6566

@@ -132,7 +133,7 @@ func (r *Reconciler) computeMinAvailable(log logr.Logger) (intstr.IntOrString, e
132133

133134
controllerCount, err := r.getControllerCount()
134135
if err != nil {
135-
log.Error(err, "error occurred during parsing the disruption budget")
136+
log.Error(err, "error occurred during get controller count")
136137
return intstr.FromInt(-1), err
137138
}
138139

0 commit comments

Comments
 (0)