Merge "[AAI] Add model-loader tracing config"
[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-2023 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: /actuator/**,/swagger-ui.html,/swagger-ui/**,/swagger-resources/**,/api-docs/**,/v3/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 ncmp:
52   dmi:
53     auth:
54       username: ${DMI_USERNAME}
55       password: ${DMI_PASSWORD}
56
57 {{- with (first .Values.kafkaUser.acls) }}
58 spring.kafka.consumer.group-id: {{ .name }}
59 {{- end }}
60 spring.kafka.bootstrap-servers: {{ include "common.release" . }}-strimzi-kafka-bootstrap:9092
61 spring.kafka.security.protocol: SASL_PLAINTEXT
62 spring.kafka.properties.sasl.mechanism: {{ .Values.kafkaUser.authenticationType | upper }}
63 spring.kafka.properties.sasl.jaas.config: ${SASL_JAAS_CONFIG}
64
65 # Kafka Topics
66 {{- if .Values.topics.config }}
67 {{ toYaml .Values.topics.config | nindent 2 }}
68 {{- end }}
69
70 {{- if .Values.config.additional }}
71 {{ toYaml .Values.config.additional | nindent 2 }}
72 {{- end }}
73
74 # Custom Hazelcast config.
75 hazelcast:
76   mode:
77     kubernetes:
78       enabled: {{ .Values.hazelcast.config.kubernetesDiscovery }}
79       service-name: {{ .Values.hazelcast.config.kubernetesServiceName }}
80
81 # Last empty line is required otherwise the last property will be missing from application.yml file in the pod.
82