added conf/ and configuration logic

This commit is contained in:
pb
2024-07-03 10:22:22 +02:00
parent dd6f112954
commit f9e5c591bd
6 changed files with 15 additions and 92 deletions

View File

@@ -15,7 +15,7 @@ type Config struct {
var instance *Config
var once sync.Once
const defaultConfigFile = "/app/conf/scheduler.json"
const defaultConfigFile = "/etc/oc/scheduler.json"
const localConfigFile = "./conf/local_scheduler.json"
@@ -48,7 +48,6 @@ func init(){
GetConfig().OcCatalogUrl = o.GetStringDefault("oc-catalog", "https://localhost:49618")
GetConfig().Logs = o.GetStringDefault("loglevel", "info")
}
func GetConfig() *Config {