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 %}
|
|
|
|
{%- for (name, value) in vars.cluster_vars.env | dictsort %}
|
2024-05-27 22:50:51 +02:00
|
|
|
{{name | upper | replace(".", "_") | replace("-", "_") }}: {{value}}
|
2024-05-25 23:43:19 +02:00
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|