[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 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
32   liquibase:
33     change-log: classpath:changelog/changelog-master.yaml
34     labels: {{ .Values.config.liquibaseLabels }}
35
36 security:
37     # comma-separated uri patterns which do not require authorization
38     permit-uri: /manage/**,/swagger-ui/**,/swagger-resources/**,/api-docs
39     auth:
40         username: ${CPS_USERNAME}
41         password: ${CPS_PASSWORD}
42 logging:
43   level:
44     org:
45       springframework: {{ .Values.logging.level }}
46
47 dmi:
48   auth:
49     username: ${DMI_USERNAME}
50     password: ${DMI_PASSWORD}
51
52 {{- if .Values.config.eventPublisher }}
53 {{ toYaml .Values.config.eventPublisher | nindent 2 }}
54 {{- end }}
55
56 {{- if .Values.config.additional }}
57 {{ toYaml .Values.config.additional | nindent 2 }}
58 {{- end }}
59 # Last empty line is required otherwise the last property will be missing from application.yml file in the pod.
60