aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_configmap.tpl
diff options
context:
space:
mode:
authorJack Lucas <jflos@sonoris.net>2021-06-07 16:40:31 -0400
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-06-30 06:32:09 +0000
commitb880f89fd371dabb34b06e74857ccd79b9bd92c2 (patch)
treeffee68700cbcec0c6e43cb231b1351b5b6764de6 /kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_configmap.tpl
parent28103082346daf96770626e7b3fcb6bd4ee59fef (diff)
[DCAE] Updates to defaults for configmap
Make external configMaps optional by default for microservices Make applicationConfig an optional parameter in values.yaml for microservices. Issue-ID: DCAEGEN2-2770 Issue-ID: DCAEGEN2-2782 Signed-off-by: Jack Lucas <jflos@sonoris.net> Change-Id: I80ec8e4a1d55201c5a174f50159bac171953b031
Diffstat (limited to 'kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_configmap.tpl')
-rw-r--r--kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_configmap.tpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_configmap.tpl b/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_configmap.tpl
index 46f52b805e..1dff4d0f77 100644
--- a/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_configmap.tpl
+++ b/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_configmap.tpl
@@ -40,6 +40,7 @@ information for the logging sidecar.
*/}}
{{- define "dcaegen2-services-common.configMap" -}}
+{{- $appConf := .Values.applicationConfig | default (dict) -}}
apiVersion: v1
kind: ConfigMap
metadata:
@@ -48,7 +49,7 @@ metadata:
labels: {{ include "common.labels" . | nindent 6 }}
data:
application_config.yaml: |
-{{ .Values.applicationConfig | toYaml | indent 4 }}
+{{ $appConf | toYaml | indent 4 }}
{{- if .Values.logDirectory }}
---