Skip to content

Commit 22ec318

Browse files
authored
Merge pull request #1615 from fluxcd/backport-1614-to-release/v1.8.x
[release/v1.8.x] Fix enqueing the same revision while reconciling
2 parents 4fff2fd + bd08fde commit 22ec318

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)