4eedc0da97cc2ed012c93aa7ef5accd3845d49da
[policy/docker.git] /
1 #  ============LICENSE_START=======================================================
2 #   Copyright (C) 2022,2024 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   application:
21     name: k8s-ppnt
22   autoconfigure:
23     exclude: >
24       org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,
25       org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration,
26       org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
27   security:
28     user:
29       name: ${RESTSERVER_USER}
30       password: ${RESTSERVER_PASSWORD}
31
32 security:
33   enable-csrf: false
34
35 participant:
36   localChartDirectory: /home/policy/local-charts
37   infoFileName: CHART_INFO.json
38   intermediaryParameters:
39     topics:
40       operationTopic: policy-acruntime-participant
41       syncTopic: acm-ppnt-sync
42     reportingTimeIntervalMs: 120000
43     description: Participant Description
44     participantId: 101c62b3-8918-41b9-a747-d21eb79c6c02
45     clampAutomationCompositionTopics:
46       topicSources:
47         -
48           topic: ${participant.intermediaryParameters.topics.operationTopic}
49           servers:
50             - "{{ .Values.global.kafkaServer }}:9092"
51           topicCommInfrastructure: kafka
52           fetchTimeout: 15000
53           useHttps: false
54           allowTracing: {{ include "policy-clamp-ac-k8s-ppnt.jaeger-enabled" . }}
55           additionalProps:
56             group.id: policy-clamp-ac-k8s-ppnt
57         -
58           topic: ${participant.intermediaryParameters.topics.syncTopic}
59           servers:
60             - "{{ .Values.global.kafkaServer }}:9092"
61           topicCommInfrastructure: kafka
62           fetchTimeout: 15000
63           useHttps: false
64           allowTracing: {{ include "policy-clamp-ac-k8s-ppnt.jaeger-enabled" . }}
65       topicSinks:
66         -
67           topic: ${participant.intermediaryParameters.topics.operationTopic}
68           servers:
69             - "{{ .Values.global.kafkaServer }}:9092"
70           topicCommInfrastructure: kafka
71           useHttps: false
72           allowTracing: {{ include "policy-clamp-ac-k8s-ppnt.jaeger-enabled" . }}
73     participantSupportedElementTypes:
74       -
75         typeName: org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement
76         typeVersion: 1.0.0
77
78 management:
79   tracing:
80     propagation:
81       produce: [{{ .Values.jaeger.producer.type }}]
82     sampling:
83       probability: {{ .Values.jaeger.sampling.probability }}
84   endpoints:
85     web:
86       base-path: /
87       exposure:
88         include: health, metrics, prometheus
89
90 server:
91   # Configuration of the HTTP/REST server. The parameters are defined and handled by the springboot framework.
92   # See springboot documentation.
93   port: 8083
94   servlet:
95     context-path: /onap/k8sparticipant
96   ssl:
97     enabled: false
98
99
100 logging:
101   # Configuration of logging
102   level:
103     ROOT: INFO
104     org.springframework: ERROR
105     org.springframework.data: ERROR
106     org.springframework.web.reactive.function.client.ExchangeFunctions: ERROR
107     org.onap.policy.clamp.controlloop.participant.kubernetes: INFO
108
109   file:
110     name: /var/log/onap/policy/clamp/application.log
111
112 chart:
113   api:
114     enabled: false
115
116 # Permitted list of helm repositories. Values are updated from values.yaml
117
118
119 tracing:
120   enabled: {{ .Values.jaeger.enabled }}
121   exporter:
122     endpoint: {{ .Values.jaeger.collector.host }}:{{ include "policy-clamp-ac-k8s-ppnt.exporter-port" . }}
123     protocol: {{ .Values.jaeger.collector.protocol }}
124   sampler:
125     jaeger-remote:
126       endpoint: {{ .Values.jaeger.collector.host }}:{{ .Values.jaeger.collector.portJaegerGrpc }}