DodoApp: Support dev virtual machines
Change-Id: Ib7641adb5be477bdde7cd9a06df4b45aa65a1c01
diff --git a/core/installer/helm.go b/core/installer/helm.go
index 8370b4e..7d3c334 100644
--- a/core/installer/helm.go
+++ b/core/installer/helm.go
@@ -42,6 +42,7 @@
}
type HelmFetcher interface {
+ // TODO(gio): implement integrity check
Pull(chart HelmChartGitRepo, rfs soft.RepoFS, root string) error
}
@@ -99,6 +100,9 @@
if err != nil {
return err
}
+ if err := rfs.RemoveDir(root); err != nil {
+ return err
+ }
return util.Walk(wtFS, "/", func(path string, info fs.FileInfo, err error) error {
if info.IsDir() {
return nil