installer: clean up codebase
* introduce helper soft package to work with SoftServe
* move commands to cmd/
diff --git a/core/installer/app.go b/core/installer/app.go
index ccdbe97..c7aa231 100644
--- a/core/installer/app.go
+++ b/core/installer/app.go
@@ -1,13 +1,24 @@
-package main
+package installer
-import "text/template"
+import (
+ "embed"
+ "log"
+ "text/template"
+)
type App struct {
Name string
Templates []*template.Template
}
-func CreateAllApps(tmpls *template.Template) []App {
+//go:embed values-tmpl
+var valuesTmpls embed.FS
+
+func CreateAllApps() []App {
+ tmpls, err := template.ParseFS(valuesTmpls, "values-tmpl/*.yaml")
+ if err != nil {
+ log.Fatal(err)
+ }
return []App{
CreateAppIngressPrivate(tmpls),
CreateAppCoreAuth(tmpls),