diff --git a/daemons/execute_monitor_kube.go b/daemons/execute_monitor_kube.go new file mode 100644 index 0000000..3b03087 --- /dev/null +++ b/daemons/execute_monitor_kube.go @@ -0,0 +1,3 @@ +package daemons + +// copy/transfer the argo_file to the created pod \ No newline at end of file diff --git a/daemons/execute_monitor_local.go b/daemons/execute_monitor_local.go new file mode 100644 index 0000000..dea8952 --- /dev/null +++ b/daemons/execute_monitor_local.go @@ -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 (){ + +} \ No newline at end of file