258526809de6abd37f9e6c526e73d48946b68322
[policy/docker.git] /
1 #  ============LICENSE_START=======================================================
2 #  Copyright (C) 2023 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 #       http://www.apache.org/licenses/LICENSE-2.0
8
9 #  Unless required by applicable law or agreed to in writing, software
10 #  distributed under the License is distributed on an "AS IS" BASIS,
11 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #  See the License for the specific language governing permissions and
13 #  limitations under the License.
14
15 #  SPDX-License-Identifier: Apache-2.0
16 #  ============LICENSE_END=========================================================
17
18 spring:
19   cloud:
20     kubernetes:
21       enabled: false
22     discovery:
23       enabled: false
24   security:
25     user:
26       name: ${RESTSERVER_USER}
27       password: ${RESTSERVER_PASSWORD}
28   autoconfigure:
29     exclude:
30       - org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
31       - org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
32       - org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
33       - org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration
34       - io.kubernetes.client.spring.extended.manifests.config.KubernetesManifestsAutoConfiguration
35       - io.kubernetes.client.spring.extended.network.config.KubernetesLoadBalancerAutoConfiguration
36   kafka:
37     consumer:
38       group-id: {{ .Values.config.kafka.consumer.groupId }}
39 {{- if .Values.config.useStrimziKafka }}
40     bootstrap-servers: release-{{ .Values.config.kafkaBootstrap }}:9092
41     security.protocol: SASL_PLAINTEXT
42     properties.sasl:
43       mechanism: SCRAM-SHA-512
44       jaas.config: ${JAASLOGIN}
45 {{ else }}
46 {{ toYaml .Values.config.eventConsumption | nindent 2 }}
47 {{- end }}
48
49 security:
50   enable-csrf: false
51
52 participant:
53   intermediaryParameters:
54     reportingTimeIntervalMs: 120000
55     description: Participant Description
56     participantId: 101c62b3-8918-41b9-a747-d21eb79c6c04
57     clampAutomationCompositionTopics:
58       topicSources:
59         - topic: POLICY-ACRUNTIME-PARTICIPANT
60           servers:
61             - ${topicServer:message-router}
62           topicCommInfrastructure: dmaap
63           fetchTimeout: 15000
64       topicSinks:
65         - topic: POLICY-ACRUNTIME-PARTICIPANT
66           servers:
67             - ${topicServer:message-router}
68           topicCommInfrastructure: dmaap
69     participantSupportedElementTypes:
70       -
71         typeName: org.onap.policy.clamp.acm.KserveAutomationCompositionElement
72         typeVersion: 1.0.1
73
74 # If Strimzi Kafka to be used for communication, replace clampAutomationCompositionTopics configuration with below
75 #    clampAutomationCompositionTopics:
76 #      topicSources:
77 #        -
78 #          topic: policy-acruntime-participant
79 #          servers:
80 #            - release-{{ .Values.config.kafkaBootstrap }}:9092
81 #          topicCommInfrastructure: kafka
82 #          fetchTimeout: 15000
83 #          useHttps: true
84 #          additionalProps:
85 #            security.protocol: SASL_PLAINTEXT
86 #            sasl.mechanism: SCRAM-SHA-512
87 #            sasl.jaas.config: ${JAASLOGIN}
88 #      topicSinks:
89 #        -
90 #          topic: policy-acruntime-participant
91 #          servers:
92 #            - release-{{ .Values.config.kafkaBootstrap }}:9092
93 #          topicCommInfrastructure: kafka
94 #          useHttps: true
95 #          additionalProps:
96 #            security.protocol: SASL_PLAINTEXT
97 #            sasl.mechanism: SCRAM-SHA-512
98 #            sasl.jaas.config: ${JAASLOGIN}
99
100 customresourcedefinition:
101   group: serving.kserve.io
102   version: v1beta1
103   plural: inferenceservices
104   grace-period: 10
105
106 management:
107   endpoints:
108     web:
109       base-path: /
110       exposure:
111         include: health, metrics, prometheus
112 server:
113   port: 8087
114   servlet:
115     context-path: /onap/policy/clamp/acm/kserveparticipant
116   ssl:
117     enabled: false
118
119