Skip to content

Commit

Permalink
feat: sync without annotation should work as before
Browse files Browse the repository at this point in the history
Signed-off-by: pashakostohrys <[email protected]>
  • Loading branch information
pasha-codefresh committed Sep 6, 2024
1 parent edff977 commit 8a7541b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controller/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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] == "" {
Expand Down

0 comments on commit 8a7541b

Please sign in to comment.