6fc53e24d63f1329169a615f1d9da7eab47b40cf
[oom.git] / kubernetes / policy / components / policy-clamp-ac-k8s-ppnt / resources / config / KubernetesParticipantParameters.yaml
1 #  ============LICENSE_START=======================================================
2 #   Copyright (C) 2021-2022 Nordix Foundation. All rights reserved.
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   kafka:
25     consumer:
26       group-id: {{ .Values.config.kafka.consumer.groupId }}
27 {{- if .Values.config.useStrimziKafka }}
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   localChartDirectory: /home/policy/local-charts
42   infoFileName: CHART_INFO.json
43   intermediaryParameters:
44     reportingTimeIntervalMs: 120000
45     description: Participant Description
46     participantId:
47       name: K8sParticipant0
48       version: 1.0.0
49     participantType:
50       name: org.onap.policy.clamp.acm.KubernetesParticipant
51       version: 2.3.4
52     clampAutomationCompositionTopics:
53       topicSources:
54         -
55           topic: POLICY-ACRUNTIME-PARTICIPANT
56           servers:
57             - ${topicServer:message-router}
58           topicCommInfrastructure: dmaap
59           fetchTimeout: 15000
60           useHttps: {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }}
61       topicSinks:
62         -
63           topic: POLICY-ACRUNTIME-PARTICIPANT
64           servers:
65             - ${topicServer:message-router}
66           topicCommInfrastructure: dmaap
67           useHttps: {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }}
68
69 # If Strimzi Kafka to be used for communication, replace clampAutomationCompositionTopics configuration with below
70 #    clampAutomationCompositionTopics:
71 #      topicSources:
72 #        -
73 #          topic: policy-acruntime-participant
74 #          servers:
75 #            - {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
76 #          topicCommInfrastructure: kafka
77 #          fetchTimeout: 15000
78 #          useHttps: true
79 #          additionalProps:
80 #            security.protocol: SASL_PLAINTEXT
81 #            sasl.mechanism: SCRAM-SHA-512
82 #            sasl.jaas.config: ${JAASLOGIN}
83 #      topicSinks:
84 #        -
85 #          topic: policy-acruntime-participant
86 #          servers:
87 #            - {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
88 #          topicCommInfrastructure: kafka
89 #          useHttps: true
90 #          additionalProps:
91 #            security.protocol: SASL_PLAINTEXT
92 #            sasl.mechanism: SCRAM-SHA-512
93 #            sasl.jaas.config: ${JAASLOGIN}
94
95 management:
96   endpoints:
97     web:
98       exposure:
99         include: health, metrics, prometheus
100
101 server:
102   # Configuration of the HTTP/REST server. The parameters are defined and handled by the springboot framework.
103   # See springboot documentation.
104   port: 8083
105   servlet:
106     context-path: /onap/policy/clamp/acm/k8sparticipant
107   ssl:
108     enabled: {{ (eq "true" (include "common.needTLS" .)) | ternary true false }}
109
110
111 logging:
112   # Configuration of logging
113   level:
114     ROOT: INFO
115     org.springframework: ERROR
116     org.springframework.data: ERROR
117     org.springframework.web.reactive.function.client.ExchangeFunctions: ERROR
118     org.onap.policy.clamp.controlloop.participant.kubernetes: INFO
119
120   file:
121     name: /var/log/onap/policy/clamp/application.log
122
123 chart:
124   api:
125     enabled: false
126
127 # Permitted list of helm repositories. Values are updated from values.yaml