From bd08fdeeed4f5bb30b6af6bb590dd958529a59ac Mon Sep 17 00:00:00 2001 From: Matheus Pimenta Date: Tue, 10 Mar 2026 18:23:12 +0000 Subject: [PATCH] Fix enqueing the same revision while reconciling Signed-off-by: Matheus Pimenta (cherry picked from commit 53e057288708b7783c42972897e05dfcf0dd42a4) --- internal/controller/kustomization_indexers.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/controller/kustomization_indexers.go b/internal/controller/kustomization_indexers.go index 7c13c115..97101d37 100644 --- a/internal/controller/kustomization_indexers.go +++ b/internal/controller/kustomization_indexers.go @@ -57,9 +57,10 @@ func (r *KustomizationReconciler) requestsForRevisionChangeOf(indexKey string) h } var dd []dependency.Dependent for i, d := range list.Items { - // If the Kustomization is ready and the revision of the artifact equals + // If the Kustomization is ready or reconciling and the revision of the artifact equals // to the last attempted revision, we should not make a request for this Kustomization - if conditions.IsReady(&list.Items[i]) && repo.GetArtifact().HasRevision(d.Status.LastAttemptedRevision) { + if (conditions.IsReady(&list.Items[i]) || conditions.IsReconciling(&list.Items[i])) && + repo.GetArtifact().HasRevision(d.Status.LastAttemptedRevision) { continue } dd = append(dd, d.DeepCopy())