Skip to content

Commit

Permalink
Use Kafka Status instead of Spec for Kafka PDB
Browse files Browse the repository at this point in the history
  • Loading branch information
alungu committed Mar 18, 2022
1 parent 9488639 commit 7724253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resources/kafka/poddisruptionbudget.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (r *Reconciler) computeMinAvailable(log logr.Logger) (intstr.IntOrString, e
*/
// number of brokers in the KafkaCluster
brokers := len(r.KafkaCluster.Spec.Brokers)
brokers := len(r.KafkaCluster.Status.BrokersState)

// configured budget in the KafkaCluster
disruptionBudget := r.KafkaCluster.Spec.DisruptionBudget.Budget
Expand Down

0 comments on commit 7724253

Please sign in to comment.