Add ability to specify and override helmDefaults.wait via cli (#1678)

This commit is contained in:
Jason Witkowski
2021-02-24 12:47:27 +09:00
committed by GitHub
parent f24b61f100
commit bd3838c059
5 changed files with 30 additions and 1 deletions
+6
View File
@@ -504,6 +504,10 @@ func (st *HelmState) prepareSyncReleases(helm helmexec.Interface, additionalValu
}
}
if opts.Wait {
flags = append(flags, "--wait")
}
if len(errs) > 0 {
results <- syncPrepareResult{errors: errs, files: files}
continue
@@ -578,6 +582,7 @@ func (st *HelmState) DetectReleasesToBeDeleted(helm helmexec.Interface, releases
type SyncOpts struct {
Set []string
SkipCleanup bool
Wait bool
}
type SyncOpt interface{ Apply(*SyncOpts) }
@@ -876,6 +881,7 @@ type ChartPrepareOptions struct {
SkipRepos bool
SkipDeps bool
SkipResolve bool
Wait bool
}
type chartPrepareResult struct {