Skip to content

Commit cef64a4

Browse files
authored
Merge pull request #1614 from fluxcd/skip-enqueue-reconciling
Fix enqueing the same revision while reconciling
2 parents 380aa07 + 53e0572 commit cef64a4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

internal/controller/kustomization_indexers.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ func (r *KustomizationReconciler) requestsForRevisionChangeOf(indexKey string) h
5757
}
5858
var dd []dependency.Dependent
5959
for i, d := range list.Items {
60-
// If the Kustomization is ready and the revision of the artifact equals
60+
// If the Kustomization is ready or reconciling and the revision of the artifact equals
6161
// to the last attempted revision, we should not make a request for this Kustomization
62-
if conditions.IsReady(&list.Items[i]) && repo.GetArtifact().HasRevision(d.Status.LastAttemptedRevision) {
62+
if (conditions.IsReady(&list.Items[i]) || conditions.IsReconciling(&list.Items[i])) &&
63+
repo.GetArtifact().HasRevision(d.Status.LastAttemptedRevision) {
6364
continue
6465
}
6566
dd = append(dd, d.DeepCopy())

0 commit comments

Comments
 (0)