From 16e805cc35cf4cb3c3160d264aac4ed836f75875 Mon Sep 17 00:00:00 2001 From: deploy Date: Fri, 25 Sep 2026 00:33:40 +0000 Subject: [PATCH] feat(plataforma): o Keycloak monta o tema de e-mail Athletic Map Sao quatro arquivos em tres diretorios, e ConfigMap nao tem diretorio: as chaves sao achatadas e o items[].path do volume remonta a hierarquia. --- tenants/plataforma/20-keycloak.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tenants/plataforma/20-keycloak.yaml b/tenants/plataforma/20-keycloak.yaml index 429cfae..7da595e 100644 --- a/tenants/plataforma/20-keycloak.yaml +++ b/tenants/plataforma/20-keycloak.yaml @@ -96,6 +96,15 @@ spec: - name: theme-athleticmapv2 mountPath: /opt/keycloak/themes/athleticmap-v2/login readOnly: true + # O tema de E-MAIL, no mesmo `athleticmap-v2`. + # + # Sao quatro arquivos em tres diretorios, e ConfigMap nao tem + # diretorio: as chaves sao achatadas e o `items[].path` do volume + # remonta a hierarquia. Gerado por + # scripts/tema_email_athleticmap.py. + - name: email-athleticmapv2 + mountPath: /opt/keycloak/themes/athleticmap-v2/email + readOnly: true volumes: - name: realm-import configMap: @@ -103,6 +112,16 @@ spec: - name: theme-athleticmapv2 configMap: name: kc-theme-athleticmapv2 + - name: email-athleticmapv2 + configMap: + name: kc-email-athleticmapv2 + # Os caminhos TEM de bater com o mapa ARQUIVOS do gerador. + items: + - { key: theme.properties, path: theme.properties } + - { key: template.ftl, path: html/template.ftl } + - { key: executeActions.ftl, path: html/executeActions.ftl } + - { key: messages_pt_BR.properties, path: messages/messages_pt_BR.properties } + - { key: messages_en.properties, path: messages/messages_en.properties } --- apiVersion: v1 kind: Service