Files
truecharts/charts/stable/nocodb/templates/_configmap.tpl
T
Stavros KoisandGitHub 113cac680e feat(apps): move apps to stable and update image refs (#2517)
* feat(apps): move apps to stable and update image refs

* remove proxy vikunja

* add more test opitons

* rerun

* 80

* correct configmap for nginx

* yml -> yml

* trim b and  B

* whoops
2022-04-19 20:23:52 +00:00

15 lines
475 B
Smarty

{{- define "nocodb.configmap" -}}
{{- $pgPass := .Values.postgresql.postgresqlPassword | trimAll "\"" }}
{{- $pgUser := .Values.postgresql.postgresqlUsername }}
{{- $pgDB := .Values.postgresql.postgresqlDatabase }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: nocodb-configmap
data:
NC_DB: "{{ printf "pg://%v-postgresql:5432?u=%v&p=%v&d=%v" .Release.Name $pgUser $pgPass $pgDB }}"
NC_MIN: "{{ ternary "true" "" .Values.env.DISABLE_SPLASH_SCREEN }}"
{{- end -}}