Skip to content

Commit

Permalink
Fix nats stream replica update
Browse files Browse the repository at this point in the history
  • Loading branch information
muralov committed Nov 15, 2023
1 parent 0ec74bd commit 82aee38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/controller/eventing/nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ func (r *Reconciler) reconcileNATSSubManager(ctx context.Context, eventing *v1al
if err := r.stopNATSSubManager(false, log); err != nil {
return err
}
} else if eventing.Status.BackendConfigHash != specHash {
// in case spec is change and subManager is not started yet (e.g. due to error)
// make natsSubManager nil to create a subManager with new values
r.natsSubManager = nil
}

if r.natsSubManager == nil {
Expand Down

0 comments on commit 82aee38

Please sign in to comment.