mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-05 18:12:41 +02:00
move context outside to limit duplicate repo updates (#828)
This commit is contained in:
committed by
KUOKA Yusuke
parent
11d0abba6e
commit
2a6bd24e3c
+1
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user