Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit d410c5e

Browse files
author
odacremolbap
committed
fix status url field
1 parent 1f3a474 commit d410c5e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pkg/reconciler/redisbroker/reconcile_secret.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ func (r *secretReconciler) buildConfigSecret(ctx context.Context, rb *eventingv1
104104
"Failed to list triggers: %w", err)
105105
}
106106

107-
cfg := &broker.Config{}
107+
cfg := &broker.Config{
108+
Triggers: make(map[string]broker.Trigger),
109+
}
108110
for _, t := range triggers {
109111
// Generate secret even if the trigger is not ready, as long as one of the URIs for target
110112
// or DLS exist.

pkg/reconciler/redisbroker/reconciler.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ func (r *Reconciler) ReconcileKind(ctx context.Context, rb *eventingv1alpha1.Red
4646
}
4747

4848
// Make sure the Broker deployment for Redis exists and that it points to the Redis service.
49-
_, _, err = r.brokerReconciler.reconcile(ctx, rb, redisSvc, secret)
49+
_, brokerSvc, err := r.brokerReconciler.reconcile(ctx, rb, redisSvc, secret)
5050
if err != nil {
5151
return err
5252
}
5353

54-
// Set address to the Redis service.
55-
rb.Status.SetAddress(apis.HTTP(network.GetServiceHostname(redisSvc.Name, redisSvc.Namespace)))
54+
// Set address to the Broker service.
55+
rb.Status.SetAddress(apis.HTTP(network.GetServiceHostname(brokerSvc.Name, brokerSvc.Namespace)))
5656

5757
return nil
5858
}

0 commit comments

Comments
 (0)