AS
Size: a a a
AS
AS
AS
DS
KZ
DS
VS
VS
DS
DS
labels:Получилось сделать "через Ж" с
"{{ var }}": value
combine фильтром:labels:
"{{ {'traefik.enable': 'true'} | combine({
'traefik.http.routers.app-' ~ var ~ '.entrypoints': 'websecure',
'traefik.http.routers.app-' ~ var ~ '.rule': 'Host(`localhost`)',
'traefik.http.routers.app-' ~ var ~ '.tls': 'true'
}) }}"
KZ
SP
KZ
DS
DS
SP
inp_list:
- VAL1
- VAL2
- VAL3
master_key:"{%- set temp_hash = [] -%}
{%- for itm in inp_list -%}
{%- set trash = temp_hash.extend([
{ 'key_a' ~ itm : 'value_a',
'key_b' ~ itm:
[{'key_c': [
{'key_d': 'value_d'},
{‘key_e’: itm}
]}]}]) -%}
{%- endfor -%}
{%- set tmp_result = temp_hash | from_yaml -%}
{{ tmp_result }}"
SP
DS
SP
SP