Merge "Add Helm Chart "template" Starter"
[oom.git] / kubernetes / aai / templates / data-router-configmap.yaml
1 #{{ if not .Values.disableAaiDataRouter }}
2 apiVersion: v1
3 kind: ConfigMap
4 metadata:
5   name: aai-data-router-prop-configmap
6   namespace: {{ .Values.nsPrefix }}
7 data:
8 {{ tpl (.Files.Glob "resources/config/data-router/appconfig/data-router.properties").AsConfig . | indent 2 }}
9 ---
10 apiVersion: v1
11 kind: ConfigMap
12 metadata:
13   name: aai-data-router-model-v8-configmap
14   namespace: {{ .Values.nsPrefix }}
15 data:
16 {{ tpl (.Files.Glob "resources/config/data-router/appconfig/model/aai_oxm_v8.xml").AsConfig . | indent 2 }}
17 ---
18 apiVersion: v1
19 kind: ConfigMap
20 metadata:
21   name: aai-data-router-model-v9-configmap
22   namespace: {{ .Values.nsPrefix }}
23 data:
24 {{ tpl (.Files.Glob "resources/config/data-router/appconfig/model/aai_oxm_v9.xml").AsConfig . | indent 2 }}
25 ---
26 apiVersion: v1
27 kind: ConfigMap
28 metadata:
29   name: aai-data-router-model-v10-configmap
30   namespace: {{ .Values.nsPrefix }}
31 data:
32 {{ tpl (.Files.Glob "resources/config/data-router/appconfig/model/aai_oxm_v10.xml").AsConfig . | indent 2 }}
33 ---
34 apiVersion: v1
35 kind: ConfigMap
36 metadata:
37   name: aai-data-router-model-v11-configmap
38   namespace: {{ .Values.nsPrefix }}
39 data:
40 {{ tpl (.Files.Glob "resources/config/data-router/appconfig/model/aai_oxm_v11.xml").AsConfig . | indent 2 }}
41 ---
42 apiVersion: v1
43 kind: Secret
44 metadata:
45   name: aai-data-router-secret
46   namespace: {{ .Values.nsPrefix }}
47 type: Opaque
48 data:
49 {{ tpl (.Files.Glob "resources/config/data-router/appconfig/auth/*").AsSecrets . | indent 2 }}
50 ---
51 apiVersion: v1
52 kind: ConfigMap
53 metadata:
54   name: aai-data-router-dynamic-configmap
55   namespace: {{ .Values.nsPrefix }}
56 data:
57 {{ tpl (.Files.Glob "resources/config/data-router/dynamic/routes/entity-event.route").AsConfig . | indent 2 }}
58 {{ tpl (.Files.Glob "resources/config/data-router/dynamic/conf/entity-event-policy.xml").AsConfig . | indent 2 }}
59 #{{ end }}