From e4cc2c6ca1b3187a4573c46c09d686a5506fcbb9 Mon Sep 17 00:00:00 2001 From: Ilya Dmitrichenko Date: Wed, 26 Jun 2024 10:00:14 +0100 Subject: [PATCH] Remove redundant call to `UpdateStoredInstance` Signed-off-by: Ilya Dmitrichenko --- internal/reconciler/reconciler.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/reconciler/reconciler.go b/internal/reconciler/reconciler.go index 6e331170..953e3e9e 100644 --- a/internal/reconciler/reconciler.go +++ b/internal/reconciler/reconciler.go @@ -174,12 +174,6 @@ func (r *Reconciler) doWaitForTermination(_ context.Context, _ logr.Logger, cs * } func (r *Reconciler) ApplyAllSets(ctx context.Context, log logr.Logger, withChangeSet withChangeSetFunc) error { - if !r.instanceExists { - if err := r.UpdateStoredInstance(ctx); err != nil { - return fmt.Errorf("instance init failed: %w", err) - } - } - multiSet := len(r.sets) > 1 for s := range r.sets { set := r.sets[s]