[DCAEMOD] Uses new tpls for repos / images
[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" . }}-cadi-prop-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/cadi.properties").AsConfig . | indent 2 }}
30 ---
31 apiVersion: v1
32 kind: ConfigMap
33 metadata:
34   name: {{ include "common.fullname" . }}-jaas-configmap
35   namespace: {{ include "common.namespace" . }}
36   labels:
37     app: {{ include "common.name" . }}
38     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
39     release: {{ include "common.release" . }}
40     heritage: {{ .Release.Service }}
41 data:
42 {{ tpl (.Files.Glob "resources/jaas/kafka_server_jaas.conf").AsConfig . | indent 2 }}
43 ---
44 {{- else }}
45
46 apiVersion: v1
47 kind: ConfigMap
48 metadata:
49   name: {{ include "common.fullname" . }}-jaas-configmap
50   namespace: {{ include "common.namespace" . }}
51   labels:
52     app: {{ include "common.name" . }}
53     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
54     release: {{ include "common.release" . }}
55     heritage: {{ .Release.Service }}
56 data:
57 {{ tpl (.Files.Glob "resources/jaas/zk_client_jaas.conf").AsConfig . | indent 2 }}
58 ---
59 {{- end }}
60
61 {{- if  .Values.prometheus.jmx.enabled }}
62 apiVersion: v1
63 kind: ConfigMap
64 metadata:
65   name: {{ include "common.fullname" . }}-prometheus-configmap
66   namespace: {{ include "common.namespace" . }}
67   labels:
68     app: {{ include "common.name" . }}
69     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
70     release: {{ include "common.release" . }}
71     heritage: {{ .Release.Service }}
72 data:
73 {{ tpl (.Files.Glob "resources/config/jmx-kafka-prometheus.yml").AsConfig . | indent 2 }}
74 ---
75 {{- end }}