diff --git a/pkg/action/install.go b/pkg/action/install.go index c6d4f723c..12304d938 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -175,6 +175,10 @@ func (i *Install) GetRegistryClient() *registry.Client { return i.registryClient } +func (i *Install) shouldWait() bool { + return i.Wait != "" +} + func (i *Install) installCRDs(crds []chart.CRD) error { // We do these one file at a time in the order they were read. totalItems := []*resource.Info{} diff --git a/pkg/action/rollback.go b/pkg/action/rollback.go index f56052988..920ea58a9 100644 --- a/pkg/action/rollback.go +++ b/pkg/action/rollback.go @@ -98,6 +98,10 @@ func (r *Rollback) Run(name string) error { return nil } +func (r *Rollback) shouldWait() bool { + return !(r.Wait == "") +} + // prepareRollback finds the previous release and prepares a new release object with // the previous release's configuration func (r *Rollback) prepareRollback(name string) (*release.Release, *release.Release, bool, error) { diff --git a/pkg/action/upgrade.go b/pkg/action/upgrade.go index 3c84570b2..222458e76 100644 --- a/pkg/action/upgrade.go +++ b/pkg/action/upgrade.go @@ -208,6 +208,10 @@ func (u *Upgrade) RunWithContext(ctx context.Context, name string, ch chart.Char return res, nil } +func (u *Upgrade) shouldWait() bool { + return u.Wait != "" +} + // isDryRun returns true if Upgrade is set to run as a DryRun func (u *Upgrade) isDryRun() bool { if u.DryRun || u.DryRunOption == "client" || u.DryRunOption == "server" || u.DryRunOption == "true" {