From 8a7541b49e6fe552474d81dead71d9c8269c270b Mon Sep 17 00:00:00 2001 From: pashakostohrys Date: Fri, 6 Sep 2024 16:36:56 +0300 Subject: [PATCH] feat: sync without annotation should work as before Signed-off-by: pashakostohrys --- controller/state.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controller/state.go b/controller/state.go index 11d59f7ad273e..4e5666b70db22 100644 --- a/controller/state.go +++ b/controller/state.go @@ -183,7 +183,8 @@ func (m *appStateManager) GetRepoObjs(app *v1alpha1.Application, sources []v1alp return nil, nil, false, fmt.Errorf("failed to get ref sources: %w", err) } - var revisionUpdated bool + // by default should be for regular sync, if application has no AnnotationKeyManifestGeneratePaths , it should work as before + revisionUpdated := true for i, source := range sources { if len(revisions) < len(sources) || revisions[i] == "" {