Skip to content

Commit

Permalink
Set GetKafkaClient
Browse files Browse the repository at this point in the history
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
  • Loading branch information
pierDipi committed Sep 19, 2024
1 parent 3b38863 commit 5db6305
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions control-plane/pkg/reconciler/channel/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ func NewController(ctx context.Context, watcher configmap.Watcher, configs *conf

clientPool := clientpool.Get(ctx)
if clientPool == nil {
reconciler.GetKafkaClient = clientpool.DisabledGetClient
reconciler.GetKafkaClusterAdmin = clientpool.DisabledGetKafkaClusterAdminFunc
} else {
reconciler.GetKafkaClient = clientPool.GetClient
reconciler.GetKafkaClusterAdmin = clientPool.GetClusterAdmin
}

Expand Down

0 comments on commit 5db6305

Please sign in to comment.