Mode in CMD
This commit is contained in:
5
main.go
5
main.go
@@ -2,7 +2,6 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"oc-schedulerd/conf"
|
||||
"oc-schedulerd/daemons"
|
||||
|
||||
@@ -10,6 +9,8 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
o := oclib.GetConfLoader()
|
||||
|
||||
oclib.InitDaemon("oc-schedulerd")
|
||||
oclib.SetConfig(
|
||||
conf.GetConfig().MongoUrl,
|
||||
@@ -18,6 +19,8 @@ func main() {
|
||||
conf.GetConfig().LokiUrl,
|
||||
conf.GetConfig().Logs,
|
||||
)
|
||||
conf.GetConfig().Mode = o.GetStringDefault("MODE", "kubernetes")
|
||||
|
||||
sch_mngr := daemons.ScheduleManager{Logger: oclib.GetLogger()}
|
||||
exe_mngr := daemons.ExecutionManager{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user