[DMAAP] DMaaP ServiceMesh compatibility
[oom.git] / kubernetes / dmaap / components / message-router / components / message-router-kafka / templates / configmap.yaml
1 {{/*
2 # Copyright © 2019 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.global.aafEnabled }}
18 apiVersion: v1
19 kind: ConfigMap
20 metadata:
21   name: {{ include "common.fullname" . }}-jaas-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/jaas/kafka_server_jaas.conf").AsConfig . | indent 2 }}
30 ---
31 {{- else }}
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 {{ tpl (.Files.Glob "resources/jaas/zk_client_jaas.conf").AsConfig . | indent 2 }}
45 ---
46 {{- end }}
47 {{- if  .Values.prometheus.jmx.enabled }}
48 apiVersion: v1
49 kind: ConfigMap
50 metadata:
51   name: {{ include "common.fullname" . }}-prometheus-configmap
52   namespace: {{ include "common.namespace" . }}
53   labels:
54     app: {{ include "common.name" . }}
55     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
56     release: {{ include "common.release" . }}
57     heritage: {{ .Release.Service }}
58 data:
59 {{ tpl (.Files.Glob "resources/config/jmx-kafka-prometheus.yml").AsConfig . | indent 2 }}
60 ---
61 {{- end }}