mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-21 10:23:06 +02:00
run deps without chart preparation (#1011)
* nonreg for #1011 Signed-off-by: Cyril Jouve <jv.cyril@gmail.com> * run deps without chart preparation Signed-off-by: Cyril Jouve <jv.cyril@gmail.com> --------- Signed-off-by: Cyril Jouve <jv.cyril@gmail.com>
This commit is contained in:
+1
-13
@@ -120,19 +120,7 @@ func (a *App) Init(c InitConfigProvider) error {
|
||||
|
||||
func (a *App) Deps(c DepsConfigProvider) error {
|
||||
return a.ForEachState(func(run *Run) (_ bool, errs []error) {
|
||||
prepErr := run.withPreparedCharts("deps", state.ChartPrepareOptions{
|
||||
SkipRepos: c.SkipRepos(),
|
||||
SkipDeps: true,
|
||||
SkipResolve: true,
|
||||
Concurrency: c.Concurrency(),
|
||||
}, func() {
|
||||
errs = run.Deps(c)
|
||||
})
|
||||
|
||||
if prepErr != nil {
|
||||
errs = append(errs, prepErr)
|
||||
}
|
||||
|
||||
errs = run.Deps(c)
|
||||
return
|
||||
}, c.IncludeTransitiveNeeds(), SetFilter(true))
|
||||
}
|
||||
|
||||
@@ -104,6 +104,12 @@ func (r *Run) withPreparedCharts(helmfileCommand string, opts state.ChartPrepare
|
||||
}
|
||||
|
||||
func (r *Run) Deps(c DepsConfigProvider) []error {
|
||||
if !c.SkipRepos() {
|
||||
if err := r.ctx.SyncReposOnce(r.state, r.helm); err != nil {
|
||||
return []error{err}
|
||||
}
|
||||
}
|
||||
|
||||
r.helm.SetExtraArgs(GetArgs(c.Args(), r.state)...)
|
||||
|
||||
return r.state.UpdateDeps(r.helm, c.IncludeTransitiveNeeds())
|
||||
|
||||
Reference in New Issue
Block a user