Skip to content

Commit

Permalink
Remove unneeded check when setting broker audience (#3708)
Browse files Browse the repository at this point in the history
  • Loading branch information
creydr authored Feb 20, 2024
1 parent 614589d commit ec4fa35
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 ec4fa35

Please sign in to comment.