CleanupOnFail option for the upgrade Step [#65]

This commit is contained in:
Erin Call
2020-01-07 12:53:55 -08:00
parent e071d23fef
commit 8c6c6fbfa5
2 changed files with 28 additions and 22 deletions

View File

@@ -9,16 +9,17 @@ type Upgrade struct {
Chart string
Release string
ChartVersion string
DryRun bool
Wait bool
Values string
StringValues string
ValuesFiles []string
ReuseValues bool
Timeout string
Force bool
Atomic bool
ChartVersion string
DryRun bool
Wait bool
Values string
StringValues string
ValuesFiles []string
ReuseValues bool
Timeout string
Force bool
Atomic bool
CleanupOnFail bool
cmd cmd
}
@@ -69,6 +70,9 @@ func (u *Upgrade) Prepare(cfg Config) error {
if u.Atomic {
args = append(args, "--atomic")
}
if u.CleanupOnFail {
args = append(args, "--cleanup-on-fail")
}
if u.Values != "" {
args = append(args, "--set", u.Values)
}