Skip to content

Commit 768968d

Browse files
authored
Merge pull request #978 from fluxcd/speed-up-recovery
fix: Consistent artifact fetching retry timing
2 parents 5e11b65 + dff4c26 commit 768968d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/controller/kustomization_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,10 @@ func (r *KustomizationReconciler) Reconcile(ctx context.Context, req ctrl.Reques
244244

245245
// Requeue the reconciliation if the source artifact is not found.
246246
if artifactSource.GetArtifact() == nil {
247-
msg := "Source is not ready, artifact not found"
247+
msg := fmt.Sprintf("Source artifact not found, retrying in %s", r.requeueDependency.String())
248248
conditions.MarkFalse(obj, meta.ReadyCondition, kustomizev1.ArtifactFailedReason, msg)
249249
log.Info(msg)
250-
return ctrl.Result{RequeueAfter: obj.GetRetryInterval()}, nil
250+
return ctrl.Result{RequeueAfter: r.requeueDependency}, nil
251251
}
252252

253253
// Check dependencies and requeue the reconciliation if the check fails.

0 commit comments

Comments
 (0)