Fix status command for helm 3 (#1098)

This commit is contained in:
Anton Trifonov
2020-02-13 08:40:20 +09:00
committed by GitHub
parent 05add478c1
commit 27425bc4d2
+3
View File
@@ -1167,6 +1167,9 @@ func (st *HelmState) ReleaseStatuses(helm helmexec.Interface, workerLimit int) [
}
flags := []string{}
if helm.IsHelm3() && release.Namespace != "" {
flags = append(flags, "--namespace", release.Namespace)
}
flags = st.appendConnectionFlags(flags, &release)
return helm.ReleaseStatus(st.createHelmContext(&release, workerIndex), release.Name, flags...)