Fix `helmfile --namespace ns delete` to not fail consistently
Until now `helmfile delete` with helm v3 had been failing when `--namespace` is provided. Helmfile was missing the fact that in helm v3 namespace must be passed instead of tiller-namespace to scope releases to be deleted. ``` err: release "b-1" failed: helm3rc2 exited with status 1: Error: uninstall: Release not loaded: b-1: release: not found in ./helmfile.yaml: release "b-1" failed: helm3rc2 exited with status 1: Error: uninstall: Release not loaded: b-1: release: not found ```
This commit is contained in:
parent
f47d8ea256
commit
30751e94f7
|
|
@ -1143,6 +1143,8 @@ func (st *HelmState) DeleteReleases(affectedReleases *AffectedReleases, helm hel
|
|||
return nil
|
||||
}
|
||||
|
||||
st.ApplyOverrides(&release)
|
||||
|
||||
flags := []string{}
|
||||
if purge && !isHelm3() {
|
||||
flags = append(flags, "--purge")
|
||||
|
|
|
|||
Loading…
Reference in New Issue