Merge "[UUI] Service Mesh Compliance for UUI"
[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" . }}:80
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   {{- if include "common.onServiceMesh" . }}
48   forward-headers-strategy: none
49   {{- end }}
50   port: {{ index .Values.containerPort }}
51   tomcat:
52     max-threads: 50
53
54 mso:
55   site-name: localSite
56   logPath: ./logs/nssmf-adapter
57   msb-ip: msb-iag.{{ include "common.namespace" . }}
58   msb-port: 80
59   adapters:
60     requestDb:
61       {{ if (include "common.needTLS" .) }}
62       endpoint: https://so-request-db-adapter.{{ include "common.namespace" . }}:8083
63       {{ else }}
64       endpoint: http://so-request-db-adapter.{{ include "common.namespace" . }}:8083
65       {{ end }}
66       auth: {{ include "so.helpers.profileProperty" (dict "condition" .Values.global.security.aaf.enabled "value1" .Values.global.aaf.auth.header "value2" .Values.mso.adapters.requestDb.auth )}}
67 #Actuator
68 management:
69   endpoints:
70     web:
71       base-path: /manage
72       exposure:
73         include: "*"
74   metrics:
75     se-global-registry: false
76     export:
77       prometheus:
78         enabled: true # Whether exporting of metrics to Prometheus is enabled.
79         step: 1m # Step size (i.e. reporting frequency) to use.