commit before rebuild

This commit is contained in:
pb 2024-07-29 15:46:44 +02:00
parent 0c02f26c28
commit 0540fbefb4
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,3 @@
package daemons
// copy/transfer the argo_file to the created pod

View 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 (){
}