From 5945dc56ecef24d326f57ac70e450213f0f84c24 Mon Sep 17 00:00:00 2001 From: Korbinian Stoemmer <292906+k15r@users.noreply.github.com> Date: Mon, 18 Nov 2019 19:34:08 +0100 Subject: [PATCH] trigger reconciliation if previous failed (#2196) --- contrib/natss/pkg/reconciler/dispatcher/natsschannel.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/natss/pkg/reconciler/dispatcher/natsschannel.go b/contrib/natss/pkg/reconciler/dispatcher/natsschannel.go index f747f2e4d3f..7419db2f467 100644 --- a/contrib/natss/pkg/reconciler/dispatcher/natsschannel.go +++ b/contrib/natss/pkg/reconciler/dispatcher/natsschannel.go @@ -130,7 +130,9 @@ func (r *Reconciler) Reconcile(ctx context.Context, key string) error { logging.FromContext(ctx).Error("Failed to update NatssChannel status", zap.Error(updateStatusErr)) return updateStatusErr } - return nil + + // trigger new reconciliation if the previous one failed + return reconcileErr } func (r *Reconciler) reconcile(ctx context.Context, natssChannel *v1alpha1.NatssChannel) error {