Fix status command for helm 3 (#1098)
This commit is contained in:
parent
05add478c1
commit
27425bc4d2
|
|
@ -1167,6 +1167,9 @@ func (st *HelmState) ReleaseStatuses(helm helmexec.Interface, workerLimit int) [
|
||||||
}
|
}
|
||||||
|
|
||||||
flags := []string{}
|
flags := []string{}
|
||||||
|
if helm.IsHelm3() && release.Namespace != "" {
|
||||||
|
flags = append(flags, "--namespace", release.Namespace)
|
||||||
|
}
|
||||||
flags = st.appendConnectionFlags(flags, &release)
|
flags = st.appendConnectionFlags(flags, &release)
|
||||||
|
|
||||||
return helm.ReleaseStatus(st.createHelmContext(&release, workerIndex), release.Name, flags...)
|
return helm.ReleaseStatus(st.createHelmContext(&release, workerIndex), release.Name, flags...)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue