[DMAAP] DMaaP ServiceMesh compatibility
[oom.git] / kubernetes / dmaap / components / message-router / templates / configmap.yaml
1 {{/*
2 # Copyright © 2017 Amdocs, Bell Canada
3 # Modifications Copyright © 2018 AT&T
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #       http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 */}}
17 apiVersion: v1
18 kind: ConfigMap
19 metadata:
20   name: {{ include "common.fullname" . }}-msgrtrapi-prop-configmap
21   namespace: {{ include "common.namespace" . }}
22   labels:
23     app: {{ include "common.name" . }}
24     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25     release: {{ include "common.release" . }}
26     heritage: {{ .Release.Service }}
27 data:
28 {{ tpl (.Files.Glob "resources/config/dmaap/MsgRtrApi.properties").AsConfig . | indent 2 }}
29 ---
30 apiVersion: v1
31 kind: ConfigMap
32 metadata:
33   name: {{ include "common.fullname" . }}-logback-xml-configmap
34   namespace: {{ include "common.namespace" . }}
35   labels:
36     app: {{ include "common.name" . }}
37     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
38     release: {{ include "common.release" . }}
39     heritage: {{ .Release.Service }}
40 data:
41 {{ tpl (.Files.Glob "resources/config/dmaap/logback.xml").AsConfig . | indent 2 }}
42 ---
43 apiVersion: v1
44 kind: ConfigMap
45 metadata:
46   name: {{ include "common.fullname" . }}-etc
47   namespace: {{ include "common.namespace" . }}
48   labels:
49     app: {{ include "common.name" . }}
50     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
51     release: {{ include "common.release" . }}
52     heritage: {{ .Release.Service }}
53 data:
54 {{ tpl (.Files.Glob "resources/config/etc/*").AsConfig . | indent 2 }}
55 ---
56 apiVersion: v1
57 kind: ConfigMap
58 metadata:
59   name: {{ include "common.fullname" . }}-dbc-mrclusters
60   namespace: {{ include "common.namespace" . }}
61   labels:
62     app: {{ include "common.name" . }}
63     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
64     release: {{ include "common.release" . }}
65     heritage: {{ .Release.Service }}
66 data:
67 {{ tpl (.Files.Glob "resources/mr_clusters/*.json").AsConfig . | indent 2 }}
68 ---
69 apiVersion: v1
70 kind: ConfigMap
71 metadata:
72   name: {{ include "common.fullname" . }}-dbc-topics
73   namespace: {{ include "common.namespace" . }}
74   labels:
75     app: {{ include "common.name" . }}
76     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
77     release: {{ include "common.release" . }}
78     heritage: {{ .Release.Service }}
79 data:
80 {{ tpl (.Files.Glob "resources/topics/*.json").AsConfig . | indent 2 }}
81 ---
82 apiVersion: v1
83 kind: ConfigMap
84 metadata:
85   name: {{ include "common.fullname" . }}-sys-props
86   namespace: {{ include "common.namespace" . }}
87   labels:
88     app: {{ include "common.name" . }}
89     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
90     release: {{ include "common.release" . }}
91     heritage: {{ .Release.Service }}
92 data:
93 {{ tpl (.Files.Glob "resources/config/dmaap/sys-props.properties").AsConfig . | indent 2 }}
94 ---
95 {{- if  .Values.prometheus.jmx.enabled }}
96 apiVersion: v1
97 kind: ConfigMap
98 metadata:
99   name: {{ include "common.fullname" . }}-prometheus-configmap
100   namespace: {{ include "common.namespace" . }}
101   labels:
102     app: {{ include "common.name" . }}
103     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
104     release: {{ include "common.release" . }}
105     heritage: {{ .Release.Service }}
106 data:
107 {{ tpl (.Files.Glob "resources/config/dmaap/jmx-mrservice-prometheus.yml").AsConfig . | indent 2 }}
108 ---
109 {{ end }}