added conf/ and configuration logic
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user