commit before rebuild
This commit is contained in:
parent
0c02f26c28
commit
0540fbefb4
3
daemons/execute_monitor_kube.go
Normal file
3
daemons/execute_monitor_kube.go
Normal file
@ -0,0 +1,3 @@
|
||||
package daemons
|
||||
|
||||
// copy/transfer the argo_file to the created pod
|
35
daemons/execute_monitor_local.go
Normal file
35
daemons/execute_monitor_local.go
Normal file
@ -0,0 +1,35 @@
|
||||
package daemons
|
||||
|
||||
import "oc-scheduler/logger"
|
||||
|
||||
type LocalMonitor struct{
|
||||
LokiURL string
|
||||
KubeURL string
|
||||
ArgoFile string
|
||||
}
|
||||
|
||||
func (lm *LocalMonitor) LaunchLocalMonitor (){
|
||||
if (lm.LokiURL == "" || lm.KubeURL == "" || lm.ArgoFile == ""){
|
||||
logger.Logger.Error().Msg("Missing parameter in LocalMonitor")
|
||||
}
|
||||
|
||||
// For dev purposes, in prod KubeURL must be a kube API's URL
|
||||
if(lm.KubeURL == "localhost"){
|
||||
lm.ExecLocalKube()
|
||||
} else{
|
||||
lm.ExecRemoteKube()
|
||||
}
|
||||
}
|
||||
|
||||
func (lm *LocalMonitor) ExecLocalKube (){
|
||||
// kube_url := ""
|
||||
}
|
||||
|
||||
|
||||
func (lm *LocalMonitor) ExecRemoteKube (){
|
||||
|
||||
}
|
||||
|
||||
func (lm *LocalMonitor) todo (){
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user