1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2019-2021 AT&T Intellectual Property. All rights reserved.
3 # Modifications Copyright (C) 2022 Bell Canada. All rights reserved.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
20 #################################################################
21 # Global configuration defaults.
22 #################################################################
28 #################################################################
30 #################################################################
34 externalSecret: '{{ tpl (default "" .Values.db.credsExternalSecret) . }}'
35 login: '{{ .Values.db.user }}'
36 password: '{{ .Values.db.password }}'
37 passwordPolicy: required
38 - uid: restserver-creds
40 externalSecret: '{{ tpl (default "" .Values.restServer.apiUserExternalSecret) . }}'
41 login: '{{ .Values.restServer.user }}'
42 password: '{{ .Values.restServer.password }}'
43 passwordPolicy: required
44 - uid: keystore-password
46 externalSecret: '{{ tpl (default "" .Values.certStores.keyStorePasswordExternalSecret) . }}'
47 password: '{{ .Values.certStores.keyStorePassword }}'
48 passwordPolicy: required
49 - uid: truststore-password
51 externalSecret: '{{ tpl (default "" .Values.certStores.trustStorePasswordExternalSecret) . }}'
52 password: '{{ .Values.certStores.trustStorePassword }}'
53 passwordPolicy: required
56 keyStorePassword: Pol1cy_0nap
57 trustStorePassword: Pol1cy_0nap
60 nameOverride: policy-api-cert-initializer
61 aafDeployFqi: deployer@people.osaaf.org
62 aafDeployPass: demo123456!
64 fqi: policy@policy.onap.org
65 public_fqdn: policy.onap.org
68 credsPath: /opt/app/osaaf/local
73 echo "export KEYSTORE='{{ .Values.credsPath }}/org.onap.policy.p12'" > {{ .Values.credsPath }}/.ci;
74 echo "export KEYSTORE_PASSWD='${cadi_keystore_password_p12}'" >> {{ .Values.credsPath }}/.ci;
75 chown -R {{ .Values.uid }}:{{ .Values.gid }} $(dirname {{ .Values.credsPath }});
78 #################################################################
79 # Application configuration defaults.
80 #################################################################
82 image: onap/policy-api:2.7.1
85 # flag to enable debugging - application support required
88 # application configuration
100 # default number of instances
107 # probe configuration parameters
109 initialDelaySeconds: 60
111 # necessary to disable liveness probe when setting breakpoints
112 # in debugger so K8s doesn't restart unresponsive container
116 initialDelaySeconds: 10
118 api: /policy/api/v1/healthcheck
152 #Pods Service Account
154 nameOverride: policy-api
160 # Override the labels based on the Prometheus config parameter: serviceMonitorSelector.
161 # The default operator for prometheus enforces the below label.
170 externalSecretNameSuffix: policy-api-user-creds
171 externalSecretUserKey: login
172 externalSecretPasswordKey: password
174 app: '{{ include "common.name" . }}'
175 chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
176 release: '{{ include "common.release" . }}'
177 heritage: '{{ .Release.Service }}'