Allow uninstalling the chart (#8)

This commit is contained in:
Andrey Pokhilko
2022-09-09 14:50:50 +01:00
committed by GitHub
parent 91fd3793c7
commit fa48cf5435
4 changed files with 132 additions and 41 deletions

View File

@@ -325,6 +325,14 @@ func (d *DataLayer) DescribeResource(namespace string, kind string, name string)
return out, nil
}
func (d *DataLayer) UninstallChart(namespace string, name string) error {
_, err := d.runCommandHelm("uninstall", name, "--namespace", namespace)
if err != nil {
return err
}
return nil
}
func RevisionDiff(functor SectionFn, ext string, namespace string, name string, revision1 int, revision2 int, flag bool) (string, error) {
if revision1 == 0 || revision2 == 0 {
log.Debugf("One of revisions is zero: %d %d", revision1, revision2)