cuddle-rust-service-plan/templates/clusters/configmap.yaml.jinja2
kjuulh c1d71df0e5
Some checks failed
continuous-integration/drone/push Build is failing
feat: upload of data
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-05-25 23:43:19 +02:00

12 lines
337 B
Django/Jinja

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ vars.cuddle_vars.service }}-config
data:
{%- if (vars.cluster_vars.env | items | length) > 0 %}
environment:
{%- for (name, value) in vars.cluster_vars.env | dictsort %}
{{name | upper | replace(".", "_") | replace("-", "_") }}: {{value}}
{%- endfor %}
{%- endif %}