3a38b88d5697d9b159881b4dc8230384f1c5bb70
[oom.git] / kubernetes / policy / components / policy-apex-pdp / resources / config / OnapPfConfig.json
1 {
2     "name":"OnapPfParameterGroup",
3     "restServerParameters": {
4       "host": "0.0.0.0",
5       "port": 6969,
6       "userName": "${RESTSERVER_USER}",
7       "password": "${RESTSERVER_PASSWORD}",
8       "https": "false",
9       "prometheus": true
10     },
11     "pdpStatusParameters": {
12         "pdpGroup": "defaultGroup",
13         "timeIntervalMs": 120000,
14         "pdpType":"apex",
15         "description":"Pdp Heartbeat",
16         "supportedPolicyTypes": [
17             {
18                 "name": "onap.policies.native.Apex",
19                 "version": "1.0.0"
20             },
21             {
22               "name": "onap.policies.controlloop.operational.common.Apex",
23               "version": "1.0.0"
24             }
25         ]
26     },
27     "topicParameterGroup": {
28       "topicSources": [{
29           "topic": "${PAP_TOPIC}",
30           "useHttps": false,
31           "fetchTimeout": 15000,
32           "servers": [ "${KAFKA_URL}" ],
33 {{ if .Values.global.useStrimziKafkaPf }}
34           "topicCommInfrastructure": "kafka",
35           "additionalProps": {
36             "group.id" : "${GROUP_ID}",
37             "security.protocol": "SASL_PLAINTEXT",
38             "sasl.mechanism": "${SASL}",
39             "sasl.jaas.config": "${JAASLOGIN}"
40           }
41 {{ else }}
42           "topicCommInfrastructure": "dmaap"
43 {{ end }}
44         }],
45       "topicSinks" : [{
46           "topic": "${PAP_TOPIC}",
47           "useHttps": false,
48           "servers": [ "${KAFKA_URL}" ],
49 {{ if .Values.global.useStrimziKafkaPf }}
50           "topicCommInfrastructure": "kafka",
51           "additionalProps": {
52             "group.id" : "${GROUP_ID}",
53             "security.protocol": "SASL_PLAINTEXT",
54             "sasl.mechanism": "${SASL}",
55             "sasl.jaas.config": "${JAASLOGIN}"
56           }
57 {{ else }}
58           "topicCommInfrastructure": "dmaap"
59 {{ end }}
60       }]
61     }
62 }