installer: create namespaces with kube client
diff --git a/core/installer/repoio.go b/core/installer/repoio.go
index 97bf9b6..4574fee 100644
--- a/core/installer/repoio.go
+++ b/core/installer/repoio.go
@@ -20,6 +20,7 @@
type RepoIO interface {
Fetch() error
+ ReadConfig() (Config, error)
ReadKustomization(path string) (*Kustomization, error)
WriteKustomization(path string, kust Kustomization) error
WriteYaml(path string, data any) error
@@ -55,6 +56,15 @@
return err
}
+func (r *repoIO) ReadConfig() (Config, error) {
+ configF, err := r.Reader(configFileName)
+ if err != nil {
+ return Config{}, err
+ }
+ defer configF.Close()
+ return ReadConfig(configF)
+}
+
func (r *repoIO) ReadKustomization(path string) (*Kustomization, error) {
inp, err := r.Reader(path)
if err != nil {