From 6f0bc3e11f453071907555e0226f1445e7afe311 Mon Sep 17 00:00:00 2001 From: Erwan Ben Souiden Date: Thu, 12 Nov 2026 15:48:18 +0100 Subject: [PATCH] refactor: build config ConfigMap data by looping over config/* --- templates/config.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/templates/config.yml b/templates/config.yml index 85e7d9f..b678948 100644 --- a/templates/config.yml +++ b/templates/config.yml @@ -7,8 +7,7 @@ metadata: {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} {{- end }} data: - application.conf: | -{{ tpl (.Files.Get "config/application.conf") . | indent 4 }} - pekko.conf: | -{{ tpl (.Files.Get "config/pekko.conf") . | indent 4 }} - + {{- range $path, $_ := .Files.Glob "config/*" }} + {{ base $path }}: | + {{- tpl ($.Files.Get $path) $ | nindent 4 }} + {{- end }}