[DMAAP] DMaaP ServiceMesh compatibility
[oom.git] / kubernetes / dmaap / components / message-router / components / message-router-zookeeper / templates / configmap.yaml
1 {{/*
2 # Copyright © 2020 AT&T
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 */}}
16
17 {{- if  .Values.prometheus.jmx.enabled }}
18 apiVersion: v1
19 kind: ConfigMap
20 metadata:
21   name: {{ include "common.fullname" . }}-prometheus-configmap
22   namespace: {{ include "common.namespace" . }}
23   labels:
24     app: {{ include "common.name" . }}
25     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
26     release: {{ include "common.release" . }}
27     heritage: {{ .Release.Service }}
28 data:
29 {{ tpl (.Files.Glob "resources/config/jmx-zookeeper-prometheus.yml").AsConfig .  | indent 2 }}
30 ---
31 {{ end }}
32
33 apiVersion: v1
34 kind: ConfigMap
35 metadata:
36   name: {{ include "common.fullname" . }}-jaas-configmap
37   namespace: {{ include "common.namespace" . }}
38   labels:
39     app: {{ include "common.name" . }}
40     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
41     release: {{ include "common.release" . }}
42     heritage: {{ .Release.Service }}
43 data:
44 {{  (.Files.Glob "resources/config/zk_server_jaas.conf").AsConfig  | indent 2 }}