Skip to content

Commit

Permalink
Remove unneeded check when setting broker audience (knative-extension…
Browse files Browse the repository at this point in the history
  • Loading branch information
creydr committed Apr 2, 2024
1 parent ec3ad81 commit 4d784ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control-plane/pkg/reconciler/broker/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func (r *Reconciler) reconcileKind(ctx context.Context, broker *eventing.Broker)
broker.Status.Address = addressableStatus.Address
broker.Status.Addresses = addressableStatus.Addresses

if feature.FromContext(ctx).IsOIDCAuthentication() && broker.Status.Address != nil {
if feature.FromContext(ctx).IsOIDCAuthentication() {
audience := auth.GetAudience(eventing.SchemeGroupVersion.WithKind("Broker"), broker.ObjectMeta)
logging.FromContext(ctx).Debugw("Setting the brokers audience", zap.String("audience", audience))
broker.Status.Address.Audience = &audience
Expand Down

0 comments on commit 4d784ac

Please sign in to comment.