Skip to content

Commit

Permalink
fix: Argo CD should not use cached git/helm revision during app creat…
Browse files Browse the repository at this point in the history
…ion/update validation (#7244)

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
  • Loading branch information
Alexander Matyushentsev committed Sep 17, 2021
1 parent b26e928 commit 183d729
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 89 deletions.
218 changes: 130 additions & 88 deletions reposerver/apiclient/repository.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion reposerver/repository/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ func (s *Service) GetAppDetails(ctx context.Context, q *apiclient.RepoServerAppD
return nil
}

settings := operationSettings{allowConcurrent: q.Source.AllowsConcurrentProcessing(), noCache: q.NoCache, noRevisionCache: q.NoCache}
settings := operationSettings{allowConcurrent: q.Source.AllowsConcurrentProcessing(), noCache: q.NoCache, noRevisionCache: q.NoCache || q.NoRevisionCache}
err := s.runRepoOperation(ctx, q.Source.TargetRevision, q.Repo, q.Source, false, cacheFn, operation, settings)

return res, err
Expand Down

0 comments on commit 183d729

Please sign in to comment.