This commit is contained in:
		
							
								
								
									
										3
									
								
								camera-operator.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										3
									
								
								camera-operator.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| import asyncio | ||||
| import os | ||||
| import yaml | ||||
| @@ -70,7 +71,7 @@ async def main(): | ||||
|   if os.getenv("KUBECONFIG"): | ||||
|       await config.load_kube_config() | ||||
|   else: | ||||
|       await config.load_incluster_config() | ||||
|       config.load_incluster_config() | ||||
|   async with ApiClient() as api: | ||||
|     v1 = client.CoreV1Api(api) | ||||
|     apps_api = client.AppsV1Api() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user