Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 406d3bc

Browse files
authored
Fix kafka broker pod label selector used when reconciling broker pod deletion (#793)
1 parent 815d07e commit 406d3bc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/resources/kafka/kafka.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,9 @@ func (r *Reconciler) Reconcile(log logr.Logger) error {
297297

298298
func (r *Reconciler) reconcileKafkaPodDelete(log logr.Logger) error {
299299
podList := &corev1.PodList{}
300-
301300
err := r.Client.List(context.TODO(), podList,
302-
client.ListOption(client.InNamespace(r.KafkaCluster.Namespace)),
303-
client.ListOption(client.MatchingLabels(kafka.LabelsForKafka(r.KafkaCluster.Name))),
304-
client.ListOption(client.HasLabels{"brokerId"}),
301+
client.InNamespace(r.KafkaCluster.Namespace),
302+
client.MatchingLabels(kafka.LabelsForKafka(r.KafkaCluster.Name)),
305303
)
306304
if err != nil {
307305
return errors.WrapIf(err, "failed to reconcile resource")

0 commit comments

Comments
 (0)