c8532499a63df11d0cca89104cc6f3a78f883ab6
[oom.git] / kubernetes / policy / components / policy-clamp-ac-http-ppnt / resources / config / HttpParticipantParameters.yaml
1 #  ============LICENSE_START=======================================================
2 #   Copyright (C) 2021-2022 Nordix Foundation.
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 #  SPDX-License-Identifier: Apache-2.0
17 #  ============LICENSE_END=========================================================
18
19 spring:
20   security:
21     user:
22       name: ${RESTSERVER_USER}
23       password: ${RESTSERVER_PASSWORD}
24 {{- if .Values.config.useStrimziKafka }}
25   kafka:
26     consumer:
27       group-id: {{ .Values.config.kafka.consumer.groupId }}
28     bootstrap-servers: {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
29     security.protocol: SASL_PLAINTEXT
30     properties.sasl:
31       mechanism: SCRAM-SHA-512
32       jaas.config: ${JAASLOGIN}
33 {{ else }}
34 {{ toYaml .Values.config.eventConsumption | nindent 2 }}
35 {{- end }}
36
37 security:
38   enable-csrf: false
39
40 participant:
41   intermediaryParameters:
42     reportingTimeIntervalMs: 120000
43     description: Participant Description
44     participantId:
45       name: HttpParticipant0
46       version: 1.0.0
47     participantType:
48       name: org.onap.policy.clamp.acm.HttpParticipant
49       version: 2.3.4
50     clampAutomationCompositionTopics:
51       topicSources:
52         - topic: POLICY-ACRUNTIME-PARTICIPANT
53           servers:
54             - ${topicServer:message-router}
55           topicCommInfrastructure: dmaap
56           fetchTimeout: 15000
57           useHttps: {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }}
58       topicSinks:
59         - topic: POLICY-ACRUNTIME-PARTICIPANT
60           servers:
61             - ${topicServer:message-router}
62           topicCommInfrastructure: dmaap
63           useHttps: {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }}
64 # If Strimzi Kafka to be used for communication, replace clampAutomationCompositionTopics configuration with below
65 #    clampAutomationCompositionTopics:
66 #      topicSources:
67 #        - topic: policy-acruntime-participant
68 #          servers:
69 #            - {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
70 #          topicCommInfrastructure: kafka
71 #          fetchTimeout: 15000
72 #          useHttps: true
73 #          additionalProps:
74 #            security.protocol: SASL_PLAINTEXT
75 #            sasl.mechanism: SCRAM-SHA-512
76 #            sasl.jaas.config: ${JAASLOGIN}
77 #      topicSinks:
78 #        - topic: policy-acruntime-participant
79 #          servers:
80 #            - {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
81 #          topicCommInfrastructure: kafka
82 #          useHttps: true
83 #          additionalProps:
84 #            security.protocol: SASL_PLAINTEXT
85 #            sasl.mechanism: SCRAM-SHA-512
86 #            sasl.jaas.config: ${JAASLOGIN}
87
88 management:
89   endpoints:
90     web:
91       exposure:
92         include: health, metrics, prometheus
93 server:
94   port: 8084
95   servlet:
96     context-path: /onap/httpparticipant
97   ssl:
98     enabled: {{ (eq "true" (include "common.needTLS" .)) | ternary true false }}
99