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 (argoproj#7244)

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Signed-off-by: viktorplakida <plakyda1@gmail.com>
  • Loading branch information
Alexander Matyushentsev authored and plakyda1 committed Sep 21, 2021
1 parent 953f421 commit fef51fc
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 fef51fc

Please sign in to comment.