template lookup hard coded for now
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		| @@ -1,5 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| import os | ||||
| import kopf | ||||
| import kubernetes | ||||
| from jinja2 import Template | ||||
| @@ -15,7 +14,8 @@ def create_fn(spec, name, namespace, logger, **kwargs): | ||||
|  | ||||
|     api = kubernetes.client.CoreV1Api() | ||||
|  | ||||
|     with open(os.path.join(os.path.dirname(__file__), '/templates/username-password.yaml.j2')) as file_: | ||||
|     # TODO: this should better be a os lookup | ||||
|     with open('/home/bw-operator/templates/username-password.yaml.j2') as file_: | ||||
|         template = Template(file_.read()) | ||||
|  | ||||
|     data = template.render( | ||||
|   | ||||
| @@ -8,7 +8,7 @@ image: | ||||
|   repository: lerentis/bitwarden-crd-operator | ||||
|   pullPolicy: IfNotPresent | ||||
|   # Overrides the image tag whose default is the chart appVersion. | ||||
|   tag: "53d27891282b91cd379f1d28ccbaec0100d19dfa" | ||||
|   tag: "2685c5b97d76bf00ed4c15519b699ae88682078f" | ||||
|  | ||||
| imagePullSecrets: [] | ||||
| nameOverride: "" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user