Merge "[DMAAP] DMaaP ServiceMesh compatibility"
[oom.git] / kubernetes / cps / components / cps-core / resources / config / application-helm.yml
1 {{/*
2 #  Copyright (C) 2021 Pantheon.tech
3 #  Modifications Copyright (C) 2020 Bell Canada.
4 #  Modifications Copyright (C) 2021-2022 Nordix Foundation.
5 #  Modifications Copyright (C) 2021 Orange
6 #
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 #
11 #     http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 */}}
19
20 spring:
21   datasource:
22 {{- if .Values.global.postgres.localCluster }}
23     url: jdbc:postgresql://{{ .Values.postgres.service.name2 }}:{{ .Values.postgres.service.externalPort2 }}/{{ .Values.postgres.config.pgDatabase }}
24 {{- else }}
25     url: jdbc:postgresql://{{ .Values.global.postgres.service.name2 }}:{{ .Values.global.postgres.service.externalPort2 }}/{{ .Values.postgres.config.pgDatabase }}
26 {{- end }}
27     username: ${DB_USERNAME}
28     password: ${DB_PASSWORD}
29     driverClassName: org.postgresql.Driver
30     initialization-mode: always
31   liquibase:
32     change-log: classpath:changelog/changelog-master.yaml
33     labels: {{ .Values.config.liquibaseLabels }}
34
35   kafka:
36     producer:
37       client-id: cps-core
38
39 security:
40   # comma-separated uri patterns which do not require authorization
41   permit-uri: /manage/**,/swagger-ui/**,/swagger-resources/**,/api-docs
42   auth:
43     username: ${CPS_USERNAME}
44     password: ${CPS_PASSWORD}
45
46 logging:
47   level:
48     org:
49       springframework: {{ .Values.logging.level }}
50
51 dmi:
52   auth:
53     username: ${DMI_USERNAME}
54     password: ${DMI_PASSWORD}
55
56 {{- if .Values.config.useStrimziKafka }}
57 spring.kafka.bootstrap-servers: {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
58 spring.kafka.security.protocol: SASL_PLAINTEXT
59 spring.kafka.properties.sasl.mechanism: SCRAM-SHA-512
60 spring.kafka.properties.sasl.jaas.config: ${JAASLOGIN}
61 {{ else }}
62 {{ toYaml .Values.config.eventPublisher | nindent 2 }}
63 {{- end }}
64
65 {{- if .Values.config.additional }}
66 {{ toYaml .Values.config.additional | nindent 2 }}
67 {{- end }}
68
69 # Last empty line is required otherwise the last property will be missing from application.yml file in the pod.
70