helmfile/state
KUOKA Yusuke 8f1a15c9cd
feat: `helmfile destroy` deletes and purges releases (#530)
* feat: `helmfile destroy` deletes and purges releases

This adds `helmfile destroy` that is basically `helmfile delete --purge`.

I've also tweaked the behavior of `delete` and `destroy` for releases with `installed: false`, so that it becomes consistent with other helmfile commands.
It now delete releases only when `installed: true` AND the release is already installed.

**Why an another command?**

Because it's easy to remember, and it also makes it easier to iterate on your helmfile.

We've been using `helmfile delete` from the beginning of helmfile,
and several months have been passed since we've added `--purge` to it.

We noticed that we always prefer to use `--purge` so that we can quickly iterate on helmfile by
e.g. `helmfile delete --purge && helmfile sync`. But making `--purge` default makes the `delete` command inconsistent with the helm's `delete`.

`destroy`, on the other hand, doesn't have such problem, and is still easy to remember for terraform users.

Resolves #511

* Update docs about `helmfile delete` and `helmfile destroy`
2019-04-02 21:17:38 +09:00
..
create.go fix: Various helmfile commands should not leave temp values files (#520) 2019-03-31 14:49:51 +09:00
create_test.go feat: double render the helmfile (#308) 2018-09-12 08:55:42 +09:00
environment.go feat: Environment Secrets (#274) 2018-09-02 21:07:35 +09:00
release.go fix: `helmfile diff` should not leave temp values files (#525) 2019-04-01 22:24:18 +09:00
release_filters.go fix: prevent panicing on invalid selector format (#323) 2018-09-09 17:20:44 +09:00
state.go feat: `helmfile destroy` deletes and purges releases (#530) 2019-04-02 21:17:38 +09:00
state_exec_tmpl.go feat: Release Template (#439) 2019-01-22 01:19:07 +09:00
state_exec_tmpl_test.go feat: Release Template (#439) 2019-01-22 01:19:07 +09:00
state_run.go feat: configurable concurrency for `helmfile test` (#442) 2019-01-23 15:46:24 +09:00
state_test.go feat: `helmfile destroy` deletes and purges releases (#530) 2019-04-02 21:17:38 +09:00
types.go feat: Release Template (#439) 2019-01-22 01:19:07 +09:00