kjuulh
9f499a4be7
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Signed-off-by: kjuulh <contact@kjuulh.io>
15 lines
435 B
Django/Jinja
15 lines
435 B
Django/Jinja
{%- set cluster_namespace = vars.cluster_vars.namespace -%}
|
|
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ vars.cuddle_vars.service }}-config
|
|
namespace: {{ cluster_namespace }}
|
|
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 %}
|