fix: `helmfile -n ns statuses` should set ns for helm 3 (#1108)

This fixes the issue reported in Slack https://sweetops.slack.com/archives/CE5NGCB9Q/p1582088381195000
This commit is contained in:
KUOKA Yusuke 2020-02-20 22:30:03 +09:00 committed by GitHub
parent 2579a876a6
commit 10f2a576c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1166,6 +1166,8 @@ func (st *HelmState) ReleaseStatuses(helm helmexec.Interface, workerLimit int) [
return nil
}
st.ApplyOverrides(&release)
flags := []string{}
if helm.IsHelm3() && release.Namespace != "" {
flags = append(flags, "--namespace", release.Namespace)