template lookup hard coded for now
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tobias Trabelsi 2022-09-10 15:18:47 +02:00
parent 2685c5b97d
commit 97fced6969
Signed by: lerentis
GPG Key ID: FF0C2839718CAF2E
2 changed files with 3 additions and 3 deletions

View File

@ -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(

View File

@ -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: ""