Skip to content

Commit

Permalink
fix(teuto-portal-k8s-worker): fix templating for the list values
Browse files Browse the repository at this point in the history
  • Loading branch information
tasches committed Nov 27, 2023
1 parent ba429b8 commit 7c51432
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/teuto-portal-k8s-worker/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 7c51432

Please sign in to comment.