From 7c51432caac91ece2eb90176947f83a79bc7140a Mon Sep 17 00:00:00 2001 From: st Date: Mon, 27 Nov 2023 14:31:15 +0100 Subject: [PATCH] fix(teuto-portal-k8s-worker): fix templating for the list values --- charts/teuto-portal-k8s-worker/templates/deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/teuto-portal-k8s-worker/templates/deployment.yaml b/charts/teuto-portal-k8s-worker/templates/deployment.yaml index a896f5ba8..437036003 100644 --- a/charts/teuto-portal-k8s-worker/templates/deployment.yaml +++ b/charts/teuto-portal-k8s-worker/templates/deployment.yaml @@ -31,7 +31,7 @@ spec: value: {{ .Values.worker.database.port | quote }} - name: KUBECONFIG value: "/kubeconfig" - {{- with (include "portalworker.dbcredentials" $) }} + {{- with (include "portalworker.dbcredentials.secretName" $) }} - name: DB_USERNAME valueFrom: secretKeyRef: @@ -46,7 +46,7 @@ spec: {{- range $k, $v := .Values.worker.config }} {{- if or (typeIs "bool" $v) ($v) }} - name: {{ regexReplaceAll `_(\d+)` ($k | snakecase | upper) "$1" }} - value: {{ $v | quote }} + value: {{ $v | join "," | quote }} {{- end -}} {{- end }} ports: