added config path to file
Some checks failed
Build and Push Docker Image / Build image (push) Has been cancelled

This commit is contained in:
2025-04-05 17:15:00 +03:00
parent f83de32368
commit 39f1c0d92c
8 changed files with 170 additions and 113 deletions

View File

@@ -146,8 +146,13 @@ func main() {
setupLog.Error(err, "unable to start manager")
os.Exit(1)
}
configPath := os.Getenv("CONFIG_PATH")
if configPath == "" {
configPath = "config.yaml"
}
config := &controller.ServerManagerReconcilerConfig{}
configData, err := os.ReadFile("config.yaml")
configData, err := os.ReadFile(configPath)
if err != nil {
setupLog.Error(err, "unable to read config file")
}