Skip to content

Commit

Permalink
Update Kafka PDB to use live Pods instead of the CR Spec (#770)
Browse files Browse the repository at this point in the history
Co-authored-by: Toader Sebastian <[email protected]>
  • Loading branch information
alungu and stoader authored Mar 22, 2022
1 parent fbce6a0 commit d4967e4
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 d4967e4

Please sign in to comment.