diff --git a/pkg/app/app.go b/pkg/app/app.go index 7c725c43..663e403c 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -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)