1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2018 Ericsson. All rights reserved.
3 # Modifications Copyright (C) 2019-2021 AT&T Intellectual Property.
4 # Modifications Copyright (C) 2023 Nordix Foundation
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
21 #################################################################
23 #################################################################
25 - uid: restserver-creds
27 externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}'
28 login: '{{ .Values.restServer.user }}'
29 password: '{{ .Values.restServer.password }}'
30 passwordPolicy: required
31 - uid: apiparameters-creds
33 externalSecret: '{{ tpl (default "" .Values.apiParameters.credsExternalSecret) . }}'
34 login: '{{ .Values.apiParameters.user }}'
35 password: '{{ .Values.apiParameters.password }}'
36 passwordPolicy: required
37 - uid: papparameters-creds
39 externalSecret: '{{ tpl (default "" .Values.papParameters.credsExternalSecret) . }}'
40 login: '{{ .Values.papParameters.user }}'
41 password: '{{ .Values.papParameters.password }}'
42 passwordPolicy: required
45 externalSecret: '{{ tpl (default "" .Values.sdcBe.credsExternalSecret) . }}'
46 login: '{{ .Values.sdcBe.user }}'
47 password: '{{ .Values.sdcBe.password }}'
48 passwordPolicy: required
49 - uid: keystore-password
51 externalSecret: '{{ tpl (default "" .Values.certStores.keyStorePasswordExternalSecret) . }}'
52 password: '{{ .Values.certStores.keyStorePassword }}'
53 passwordPolicy: required
54 - uid: truststore-password
56 externalSecret: '{{ tpl (default "" .Values.certStores.trustStorePasswordExternalSecret) . }}'
57 password: '{{ .Values.certStores.trustStorePassword }}'
58 passwordPolicy: required
60 #################################################################
61 # Global configuration defaults.
62 #################################################################
67 #################################################################
68 # Application configuration defaults.
69 #################################################################
71 image: onap/policy-distribution:2.9.1
74 # flag to enable debugging - application support required
77 #Strimzi Kafka User def
80 - name: policy-distribution
86 operations: [Read, Write]
99 password: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
101 keyStorePassword: Pol1cy_0nap
102 trustStorePassword: Pol1cy_0nap
105 nameOverride: policy-distribution-cert-initializer
106 aafDeployFqi: deployer@people.osaaf.org
107 aafDeployPass: demo123456!
109 fqi: policy@policy.onap.org
110 public_fqdn: policy.onap.org
112 cadi_longitude: "0.0"
113 credsPath: /opt/app/osaaf/local
114 app_ns: org.osaaf.aaf
118 echo "export KEYSTORE='{{ .Values.credsPath }}/org.onap.policy.p12'" >> {{ .Values.credsPath }}/.ci;
119 echo "export KEYSTORE_PASSWD='${cadi_keystore_password_p12}'" >> {{ .Values.credsPath }}/.ci;
120 chown -R {{ .Values.uid }}:{{ .Values.gid }} $(dirname {{ .Values.credsPath }});
122 # default number of instances
129 # probe configuration parameters
131 initialDelaySeconds: 20
133 # necessary to disable liveness probe when setting breakpoints
134 # in debugger so K8s doesn't restart unresponsive container
138 initialDelaySeconds: 20
143 name: policy-distribution
169 #Pods Service Account
171 nameOverride: policy-distribution
177 # Override the labels based on the Prometheus config parameter: serviceMonitorSelector.
178 # The default operator for prometheus enforces the below label.
182 port: policy-distribution
187 externalSecretNameSuffix: policy-distribution-restserver-creds
188 externalSecretUserKey: login
189 externalSecretPasswordKey: password
191 app: '{{ include "common.name" . }}'
192 chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
193 release: '{{ include "common.release" . }}'
194 heritage: '{{ .Release.Service }}'