Merge "[DMAAP] DMaaP ServiceMesh compatibility"
[oom.git] / kubernetes / so / components / so-nssmf-adapter / resources / config / overrides / override.yaml
1 {{/*
2 # Copyright © 2020 Huawei Technologies Co., Ltd.
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 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 */}}
16 aai:
17   auth: {{ include "so.helpers.profileProperty" (dict "condition" .Values.global.security.aaf.enabled "value1" .Values.global.aaf.auth.header "value2" .Values.aai.auth )}}
18   {{ if (include "common.needTLS" .) }}
19   endpoint: https://aai.{{ include "common.namespace" . }}:8443
20   {{ else }}
21   endpoint: http://aai.{{ include "common.namespace" . }}:8080
22   {{ end }}
23 logging:
24   path: logs
25 spring:
26   datasource:
27     jdbc-url: jdbc:mariadb://${DB_HOST}:${DB_PORT}/requestdb
28     username: ${DB_USERNAME}
29     password: ${DB_PASSWORD}
30     driver-class-name: org.mariadb.jdbc.Driver
31   jpa:
32     show-sql: false
33     hibernate:
34       dialect: org.hibernate.dialect.MySQL5Dialect
35       ddl-auto: validate
36       naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
37       enable-lazy-load-no-trans: true
38   security:
39     usercredentials:
40       - username: ${BPEL_USERNAME}
41         password: ${BPEL_PASSWORD}
42         role: BPEL-Client
43       - username: ${ACTUATOR_USERNAME}
44         password: ${ACTUATOR_PASSWORD}
45         role: ACTUATOR
46 server:
47   port: {{ index .Values.containerPort }}
48   tomcat:
49     max-threads: 50
50
51 mso:
52   site-name: localSite
53   logPath: ./logs/nssmf-adapter
54   msb-ip: msb-iag.{{ include "common.namespace" . }}
55   msb-port: 80
56   adapters:
57     requestDb:
58       {{ if (include "common.needTLS" .) }}
59       endpoint: https://so-request-db-adapter.{{ include "common.namespace" . }}:8083
60       {{ else }}
61       endpoint: http://so-request-db-adapter.{{ include "common.namespace" . }}:8083
62       {{ end }}
63       auth: {{ include "so.helpers.profileProperty" (dict "condition" .Values.global.security.aaf.enabled "value1" .Values.global.aaf.auth.header "value2" .Values.mso.adapters.requestDb.auth )}}
64 #Actuator
65 management:
66   endpoints:
67     web:
68       base-path: /manage
69       exposure:
70         include: "*"
71   metrics:
72     se-global-registry: false
73     export:
74       prometheus:
75         enabled: true # Whether exporting of metrics to Prometheus is enabled.
76         step: 1m # Step size (i.e. reporting frequency) to use.