diff --git a/controllers/clusterpromotion_controller.go b/controllers/clusterpromotion_controller.go index 241e7920..0656be3f 100644 --- a/controllers/clusterpromotion_controller.go +++ b/controllers/clusterpromotion_controller.go @@ -172,7 +172,7 @@ func (r *ClusterPromotionReconciler) reconcileNormal( isEligible, err := r.verifyStageEligibility(ctx, promotionScope, logger) if err != nil { - return reconcile.Result{Requeue: true, RequeueAfter: normalRequeueAfter} + return reconcile.Result{Requeue: true, RequeueAfter: licenseRequeueAfter} } if !isEligible { diff --git a/controllers/clustersummary_controller.go b/controllers/clustersummary_controller.go index 97849def..bd2f759c 100644 --- a/controllers/clustersummary_controller.go +++ b/controllers/clustersummary_controller.go @@ -79,6 +79,9 @@ const ( // dryRunRequeueAfter is how long to wait before reconciling a ClusterSummary in DryRun mode dryRunRequeueAfter = 60 * time.Second + + // licenseRequeueAfter is how long to wait before retrying after a license fetch error + licenseRequeueAfter = 60 * time.Second ) type ReportMode int @@ -417,7 +420,7 @@ func (r *ClusterSummaryReconciler) reconcileNormal(ctx context.Context, if !isEligible { r.updateStatusWithMissingLicenseError(clusterSummaryScope, logger) - return reconcile.Result{}, nil + return reconcile.Result{Requeue: true, RequeueAfter: licenseRequeueAfter}, nil } updateMapErrs := r.updateMaps(ctx, clusterSummaryScope, logger)