MCPcopy
hub / github.com/roboll/helmfile / ForEachState

Method ForEachState

pkg/app/app.go:893–903  ·  view source on GitHub ↗
(do func(*Run) (bool, []error), includeTransitiveNeeds bool, o ...LoadOption)

Source from the content-addressed store, hash-verified

891)
892
893func (a *App) ForEachState(do func(*Run) (bool, []error), includeTransitiveNeeds bool, o ...LoadOption) error {
894 ctx := NewContext()
895 err := a.visitStatesWithSelectorsAndRemoteSupport(a.FileOrDir, func(st *state.HelmState) (bool, []error) {
896 helm := a.getHelm(st)
897
898 run := NewRun(st, helm, ctx)
899 return do(run)
900 }, includeTransitiveNeeds, o...)
901
902 return err
903}
904
905func printBatches(batches [][]state.Release) string {
906 buf := &bytes.Buffer{}

Calls 4

getHelmMethod · 0.95
NewContextFunction · 0.85
NewRunFunction · 0.85