Skip to content

Commit da48ff0

Browse files
committed
RequeueIfMissingBaseCRs only if reconciliation subject's del ts is zero
1 parent 5803cf3 commit da48ff0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

controllers/utils/base_reconciler.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ package utils
1919
import (
2020
"context"
2121
"fmt"
22-
"k8s.io/client-go/tools/record"
2322
"strings"
2423
"time"
2524

25+
"k8s.io/client-go/tools/record"
26+
2627
"github.com/go-logr/logr"
2728
"github.com/hashicorp/go-multierror"
2829
"github.com/pkg/errors"
@@ -402,7 +403,7 @@ func (r *ReconciliationRunner) RunBaseReconciliationStages() (res ctrl.Result, r
402403
r.SetupPatcher,
403404
r.GetCAPICluster,
404405
r.GetCSCluster,
405-
r.RequeueIfMissingBaseCRs,
406+
r.RunIf(func() bool { return r.ReconciliationSubject.GetDeletionTimestamp().IsZero() }, r.RequeueIfMissingBaseCRs),
406407
r.CheckIfPaused}
407408
baseStages = append(
408409
append(baseStages, r.additionalCommonStages...),

0 commit comments

Comments
 (0)