From bd6b19fde674fadf478c00d90d5aea1c701f9c6c Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 26 May 2024 23:26:21 +0200 Subject: [PATCH] feat: add crdb to config mpa instead Signed-off-by: kjuulh --- templates/clusters/deployment.yaml.jinja2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/clusters/deployment.yaml.jinja2 b/templates/clusters/deployment.yaml.jinja2 index d33a40c..504b73f 100644 --- a/templates/clusters/deployment.yaml.jinja2 +++ b/templates/clusters/deployment.yaml.jinja2 @@ -32,6 +32,10 @@ spec: envFrom: - configMapRef: name: {{service_name}}-config + {%- if vars.cuddle_crdb.has_values %} + - configMapRef: + name: {{ vars.cuddle_crdb.file_name(service_name) }} + {%- endif %} {%- if vars.vault_secret.has_values or vars.cuddle_crdb.has_values %} env: {%- if vars.vault_secret.has_values %} @@ -43,6 +47,7 @@ spec: key: {{ secret }} {%- endfor %} {%- endif %} + {# {%- if vars.cuddle_crdb.has_values %} - name: {{vars.cuddle_crdb.env }} valueFrom: @@ -50,6 +55,7 @@ spec: name: {{ vars.cuddle_crdb.file_name(service_name) }} key: {{ vars.cuddle_crdb.env }} {%- endif %} + #} {%- endif %} ports: - containerPort: 3000