Skip to content

Commit

Permalink
move context outside to limit duplicate repo updates (#828)
Browse files Browse the repository at this point in the history
  • Loading branch information
sstarcher authored and mumoshu committed Aug 31, 2019
1 parent 11d0abb commit 2a6bd24
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,8 @@ func (a *App) visitStates(fileOrDir string, defOpts LoadOpts, converge func(*sta
}

func (a *App) ForEachState(do func(*Run) []error) error {
ctx := NewContext()
err := a.VisitDesiredStatesWithReleasesFiltered(a.FileOrDir, func(st *state.HelmState, helm helmexec.Interface) []error {
ctx := NewContext()

run := NewRun(st, helm, ctx)

return do(run)
Expand Down

0 comments on commit 2a6bd24

Please sign in to comment.