TrueChartsClone/charts/dev/noisedash/templates/_configmap.tpl

21 lines
643 B
Smarty

{{/* Define the secrets */}}
{{- define "noisedash.config" -}}
{{- $configName := printf "%s-noisedash-config" (include "tc.v1.common.names.fullname" .) }}
enabled: true
data:
default.json: |
{
"Server": {
"listeningPort": {{ .Values.service.main.ports.main.port }},
"sessionFileStorePath": "sessions",
"sampleUploadPath": "/var/noisedash/samples",
"maxSampleSize": {{ int .Values.noisedash.max_sample_size_in_bytes }},
"logFile": "/var/noisedash/log/log/noisedash.log",
"tls": false,
"tlsKey": "certs/key.pem",
"tlsCert": "certs/cert.pem"
}
}
{{- end -}}