blob: 0db30b2fdd4cfcc75caad26b10660951e3029e68 [file] [log] [blame]
Jakub Latusekd71d26c2020-10-21 13:36:29 +02001{{/*
mmis9cb50292018-09-19 00:31:35 +01002# ============LICENSE_START=======================================================
3# Copyright (C) 2018 Ericsson. All rights reserved.
jhhd2b9ed82019-12-10 17:15:28 -06004# Modifications Copyright (C) 2020 AT&T Intellectual Property.
jhhd74fe9f2021-04-15 11:04:39 -05005# Modifications Copyright (C) 2021 Bell Canada. All rights reserved.
efiacorab235f42023-02-15 11:51:52 +00006# Modifications Copyright (C) 2023 Nordix Foundation
mmis9cb50292018-09-19 00:31:35 +01007# ================================================================================
8# Licensed under the Apache License, Version 2.0 (the "License");
9# you may not use this file except in compliance with the License.
10# You may obtain a copy of the License at
11#
12# http://www.apache.org/licenses/LICENSE-2.0
13#
14# Unless required by applicable law or agreed to in writing, software
15# distributed under the License is distributed on an "AS IS" BASIS,
16# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17# See the License for the specific language governing permissions and
18# limitations under the License.
19#
20# SPDX-License-Identifier: Apache-2.0
21# ============LICENSE_END=========================================================
Jakub Latusekd71d26c2020-10-21 13:36:29 +020022*/}}
mmis9cb50292018-09-19 00:31:35 +010023{
24 "name":"SDCDistributionGroup",
25 "restServerParameters":{
26 "host":"0.0.0.0",
27 "port":6969,
Dominik Mizyn4aa534f2020-04-14 18:03:53 +020028 "userName":"${RESTSERVER_USER}",
29 "password":"${RESTSERVER_PASSWORD}",
amatthews736bf372021-12-14 16:04:15 +000030 "https": {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }},
jhhd74fe9f2021-04-15 11:04:39 -050031 "prometheus": true
mmis9cb50292018-09-19 00:31:35 +010032 },
33 "receptionHandlerParameters":{
34 "SDCReceptionHandler":{
35 "receptionHandlerType":"SDC",
36 "receptionHandlerClassName":"org.onap.policy.distribution.reception.handling.sdc.SdcReceptionHandler",
37 "receptionHandlerConfigurationName":"sdcConfiguration",
38 "pluginHandlerParameters":{
39 "policyDecoders":{
jhhd2b9ed82019-12-10 17:15:28 -060040 "ToscaPolicyDecoder":{
41 "decoderType":"ToscaPolicyDecoder",
mmis9cb50292018-09-19 00:31:35 +010042 "decoderClassName":"org.onap.policy.distribution.reception.decoding.policy.file.PolicyDecoderFileInCsarToPolicy",
jhhd2b9ed82019-12-10 17:15:28 -060043 "decoderConfigurationName": "toscaPolicyDecoderConfiguration"
mmis9cb50292018-09-19 00:31:35 +010044 }
45 },
46 "policyForwarders":{
ramverma7ad80892019-08-30 14:55:47 +010047 "LifeCycleApiForwarder":{
48 "forwarderType":"LifeCycleAPI",
49 "forwarderClassName":"org.onap.policy.distribution.forwarding.lifecycle.api.LifecycleApiPolicyForwarder",
50 "forwarderConfigurationName": "lifecycleApiConfiguration"
mmis9cb50292018-09-19 00:31:35 +010051 }
52 }
53 }
54 }
55 },
56 "receptionHandlerConfigurationParameters":{
57 "sdcConfiguration":{
58 "parameterClassName":"org.onap.policy.distribution.reception.handling.sdc.SdcReceptionHandlerConfigurationParameterGroup",
59 "parameters":{
efiacor3f7b3752022-11-28 10:38:56 +000060 "environmentName": "AUTO",
efiacorab235f42023-02-15 11:51:52 +000061 "isUseHttpsWithSdc": false,
efiacor3f7b3752022-11-28 10:38:56 +000062 "keyStorePath": "null",
63 "keyStorePassword": "null",
64 "activeserverTlsAuth": false,
efiacorab235f42023-02-15 11:51:52 +000065 "sdcAddress": "sdc-be.{{ include "common.namespace" . }}:8080",
Dominik Mizyn4aa534f2020-04-14 18:03:53 +020066 "user": "${SDCBE_USER}",
67 "password": "${SDCBE_PASSWORD}",
efiacorab235f42023-02-15 11:51:52 +000068 {{ with (first .Values.kafkaUser.acls) }}
69 "consumerId": "{{ .name }}-id",
70 "consumerGroup": "{{ .name }}",
71 {{ end }}
mmis9cb50292018-09-19 00:31:35 +010072 "pollingInterval":20,
73 "pollingTimeout":30,
mmis9cb50292018-09-19 00:31:35 +010074 "artifactTypes": [
75 "TOSCA_CSAR",
76 "HEAT"
77 ],
efiacor3f7b3752022-11-28 10:38:56 +000078 "isFilterinEmptyResources": true
mmis9cb50292018-09-19 00:31:35 +010079 }
80 }
81 },
82 "policyDecoderConfigurationParameters":{
jhhd2b9ed82019-12-10 17:15:28 -060083 "toscaPolicyDecoderConfiguration":{
mmis9cb50292018-09-19 00:31:35 +010084 "parameterClassName":"org.onap.policy.distribution.reception.decoding.policy.file.PolicyDecoderFileInCsarToPolicyParameterGroup",
85 "parameters":{
jhhd2b9ed82019-12-10 17:15:28 -060086 "policyFileName": "tosca_policy",
87 "policyTypeFileName": "tosca_policy_type"
mmis9cb50292018-09-19 00:31:35 +010088 }
89 }
90 },
91 "policyForwarderConfigurationParameters":{
ramverma7ad80892019-08-30 14:55:47 +010092 "lifecycleApiConfiguration":{
93 "parameterClassName":"org.onap.policy.distribution.forwarding.lifecycle.api.LifecycleApiForwarderParameters",
94 "parameters":{
95 "apiParameters": {
jhhd74fe9f2021-04-15 11:04:39 -050096 "clientName": "policy-api",
97 "hostname": "policy-api",
98 "port": 6969,
99 "userName": "${API_USER}",
100 "password": "${API_PASSWORD}",
amatthews736bf372021-12-14 16:04:15 +0000101 "useHttps": {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }}
ramverma7ad80892019-08-30 14:55:47 +0100102 },
jhhd74fe9f2021-04-15 11:04:39 -0500103 "papParameters": {
104 "clientName": "policy-pap",
105 "hostname": "policy-pap",
106 "port": 6969,
107 "userName": "${PAP_USER}",
108 "password": "${PAP_PASSWORD}",
amatthews736bf372021-12-14 16:04:15 +0000109 "useHttps": {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }}
jhhd74fe9f2021-04-15 11:04:39 -0500110 },
ramverma7ad80892019-08-30 14:55:47 +0100111 "deployPolicies": true
112 }
mmis9cb50292018-09-19 00:31:35 +0100113 }
114 }
115}