VES chart updates
[it/dep.git] / ric-aux / helm / ves / templates / configmap.yaml
1 ################################################################################
2 #   Copyright (c) 2019,2020 AT&T Intellectual Property.                        #
3 #   Copyright (c) 2019 Nokia.                                                  #
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 ---
18 apiVersion: v1
19 kind: ConfigMap
20 metadata:
21   name: {{ include "common.configmapname.ves" . }}
22 data:
23   DmaapConfig.json: |
24     {
25       "channels": [
26         {
27           "name": "ves-measurement",
28           "class": "HpCambriaOutputStream",
29           "stripHpId": "true",
30           "type": "out",
31           "cambria.topic": {{ .Values.ves.dmaapMrTopicSecMeasurement | quote }},
32           "cambria.hosts": {{ .Values.ves.dmaapMrHostPorts | quote }}
33         },
34         {
35           "name": "ves-fault",
36           "class": "HpCambriaOutputStream",
37           "stripHpId": "true",
38           "type": "out",
39           "cambria.topic": {{ .Values.ves.dmaapMrTopicSecFault | quote }},
40           "cambria.hosts": {{ .Values.ves.dmaapMrHostPorts | quote }}
41         },
42         {
43           "name": "ves-heartbeat",
44           "class": "HpCambriaOutputStream",
45           "stripHpId": "true",
46           "type": "out",
47           "cambria.topic": {{ .Values.ves.dmaapMrTopicSecFault | quote }},
48           "cambria.hosts": {{ .Values.ves.dmaapMrHostPorts | quote }}
49         },
50         {
51           "name": "ves-other",
52           "class": "HpCambriaOutputStream",
53           "stripHpId": "true",
54           "type": "out",
55           "cambria.topic": {{ .Values.ves.dmaapMrTopicSecOther | quote }},
56           "cambria.hosts": {{ .Values.ves.dmaapMrHostPorts | quote }}
57         },
58         {
59           "name": "ves-notification",
60           "class": "HpCambriaOutputStream",
61           "stripHpId": "true",
62           "type": "out",
63           "cambria.topic": {{ .Values.ves.dmaapMrTopicVesNotification | quote }},
64           "cambria.hosts": {{ .Values.ves.dmaapMrHostPorts | quote }}
65         },
66         {
67           "name": "ves-pnfRegistration",
68           "class": "HpCambriaOutputStream",
69           "stripHpId": "true",
70           "type": "out",
71           "cambria.topic": {{ .Values.ves.dmaapMrTopicVesPnfReg | quote }},
72           "cambria.hosts": {{ .Values.ves.dmaapMrHostPorts | quote }}
73         }
74       ]
75     }
76 ---
77 apiVersion: v1
78 kind: ConfigMap
79 metadata:
80   name: {{ include "common.configmapname.ves" . }}-properties
81 data:
82   {{- (.Files.Glob "resources/*").AsConfig | nindent 2 }}