2024-05-26 23:23:05 +02:00
|
|
|
{%- set cluster_namespace = vars.cluster_vars.namespace -%}
|
|
|
|
|
2024-05-25 23:43:19 +02:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: {{ vars.cuddle_vars.service }}-config
|
2024-05-26 23:23:05 +02:00
|
|
|
namespace: {{ cluster_namespace }}
|
2024-05-25 23:43:19 +02:00
|
|
|
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 %}
|