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:02 +09:00
committed by GitHub
parent 2579a876a6
commit 10f2a576c5
+2
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)