commit before rebuild
This commit is contained in:
		
							
								
								
									
										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 (){
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user