feat: use helm status to find helm release (#1640)

* feat: use helm status to find helm release

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2024-07-30 13:40:44 +08:00
committed by GitHub
parent 8f44f12f07
commit 75ad24e6dc
11 changed files with 346 additions and 260 deletions
+3
View File
@@ -138,6 +138,9 @@ func (helm *Helm) DiffRelease(context helmexec.HelmContext, name, chart, namespa
return err
}
func (helm *Helm) ReleaseStatus(context helmexec.HelmContext, release string, flags ...string) error {
if strings.Contains(release, "notFound") {
return errors.New("Error: release: not found")
}
if strings.Contains(release, "error") {
return errors.New("error")
}