Merge "[DMAAP] DMaaP ServiceMesh compatibility"
[oom.git] / kubernetes / cps / components / cps-temporal / resources / config / application-helm.yml
1 {{/*
2 # ============LICENSE_START=======================================================
3 #  Copyright (c) 2021 Bell Canada.
4 # Modifications Copyright © 2022 Nordix Foundation
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9
10 #       http://www.apache.org/licenses/LICENSE-2.0
11
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #
18 #  SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
20 */}}
21
22 spring:
23   datasource:
24     url: jdbc:postgresql://{{ .Values.timescaledb.service.name }}:5432/{{ .Values.timescaledb.config.pgDatabase }}
25     username: ${DB_USERNAME}
26     password: ${DB_PASSWORD}
27
28   kafka:
29     consumer:
30       group-id: {{ .Values.config.kafka.consumer.groupId }}
31
32 app:
33   listener:
34     data-updated:
35       topic: {{ .Values.config.app.listener.dataUpdatedTopic }}
36
37 {{- if .Values.config.useStrimziKafka }}
38 spring.kafka.bootstrap-servers: {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
39 spring.kafka.security.protocol: SASL_PLAINTEXT
40 spring.kafka.properties.sasl.mechanism: SCRAM-SHA-512
41 spring.kafka.properties.sasl.jaas.config: ${JAASLOGIN}
42 {{ else }}
43 {{ toYaml .Values.config.eventPublisher | nindent 2 }}
44 {{- end }}
45
46 {{- if .Values.config.additional }}
47 {{ toYaml .Values.config.additional | nindent 2 }}
48 {{- end }}
49
50 security:
51   auth:
52     username: ${APP_USERNAME}
53     password: ${APP_PASSWORD}
54
55 # Last empty line is required otherwise the last property will be missing from application.yml file in the pod.