Merge pull request #5579 from flant/add-cleanup-on-fail-to-atomic

Add --cleanup-on-fail support into --atomic: use CleanupOnFail param in rollback (optionally)
pull/5594/head
Taylor Thomas 7 years ago committed by GitHub
commit 0664ef5c44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -283,17 +283,18 @@ func (u *upgradeCmd) run() error {
if u.atomic { if u.atomic {
fmt.Fprint(u.out, "ROLLING BACK") fmt.Fprint(u.out, "ROLLING BACK")
rollback := &rollbackCmd{ rollback := &rollbackCmd{
out: u.out, out: u.out,
client: u.client, client: u.client,
name: u.release, name: u.release,
dryRun: u.dryRun, dryRun: u.dryRun,
recreate: u.recreate, recreate: u.recreate,
force: u.force, force: u.force,
timeout: u.timeout, timeout: u.timeout,
wait: u.wait, wait: u.wait,
description: "", description: "",
revision: releaseHistory.Releases[0].Version, revision: releaseHistory.Releases[0].Version,
disableHooks: u.disableHooks, disableHooks: u.disableHooks,
cleanupOnFail: u.cleanupOnFail,
} }
if err := rollback.run(); err != nil { if err := rollback.run(); err != nil {
return err return err

Loading…
Cancel
Save