Skip to content

Commit 4d784ac

Browse files
committed
Remove unneeded check when setting broker audience (knative-extensions#3708)
1 parent ec3ad81 commit 4d784ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

control-plane/pkg/reconciler/broker/broker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func (r *Reconciler) reconcileKind(ctx context.Context, broker *eventing.Broker)
285285
broker.Status.Address = addressableStatus.Address
286286
broker.Status.Addresses = addressableStatus.Addresses
287287

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

0 commit comments

Comments
 (0)