Skip to content

Commit

Permalink
fix(operator): make broker consumers listening broker (formancehq#1461)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag authored Apr 26, 2024
1 parent 99de15d commit 1d95d58
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package brokerconsumers
import (
"github.com/formancehq/operator/api/formance.com/v1beta1"
"github.com/formancehq/operator/internal/core"
"github.com/formancehq/operator/internal/resources/brokers"
v1 "k8s.io/api/batch/v1"
"sigs.k8s.io/controller-runtime/pkg/builder"
)
Expand All @@ -12,6 +13,7 @@ func init() {
core.WithStackDependencyReconciler(Reconcile,
core.WithOwn[*v1beta1.BrokerConsumer](&v1beta1.BrokerTopic{}, builder.MatchEveryOwner),
core.WithOwn[*v1beta1.BrokerConsumer](&v1.Job{}),
brokers.Watch[*v1beta1.BrokerConsumer](),
),
)
}

0 comments on commit 1d95d58

Please sign in to comment.