Skip to content

Commit

Permalink
respect rev cache during manifest generation
Browse files Browse the repository at this point in the history
  • Loading branch information
pasha-codefresh authored and oleksandr-codefresh committed Sep 3, 2024
1 parent 69c1856 commit d9d02b2
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 163 deletions.
4 changes: 1 addition & 3 deletions controller/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ func (m *appStateManager) GetRepoObjs(app *v1alpha1.Application, sources []v1alp
TrackingMethod: string(argo.GetTrackingMethod(m.settingsMgr)),
RefSources: refSources,
HasMultipleSources: app.Spec.HasMultipleSources(),
NoRevisionCache: noRevisionCache,
})

if updateRevisionResponse != nil && updateRevisionResponse.Revision != "" {
Expand All @@ -244,9 +245,6 @@ func (m *appStateManager) GetRepoObjs(app *v1alpha1.Application, sources []v1alp
}

if os.Getenv("PERSIST_CHANGE_REVISIONS") == "1" {
// we need to make sure that revision cache is the same as the updateRevision, we want to skip the cache for this
noRevisionCache = true

if updateRevision != "" {
revisions[i] = updateRevision
}
Expand Down
Loading

0 comments on commit d9d02b2

Please sign in to comment.