1 # Copyright © 2018 AT&T, Amdocs, Bell Canada Intellectual Property. All rights reserved.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 #################################################################
16 # Global configuration defaults.
17 #################################################################
22 #################################################################
24 #################################################################
26 # dependency / sub-chart configuration
28 nameOverride: appc-cdt-cert-initializer
29 truststoreMountpath: /opt/onap/appc/data/stores
31 app_ns: "org.osaaf.aaf"
32 fqi: "appc-cdt@appc-cdt.onap.org"
33 fqi_namespace: org.onap.appc-cdt
34 public_fqdn: "appc-cdt.onap.org"
35 aafDeployFqi: "deployer@people.osaaf.org"
36 aafDeployPass: demo123456!
38 cadi_longitude: "-72.0"
39 credsPath: /opt/app/osaaf/local
41 echo "*** retrieving password for keystore"
42 export $(/opt/app/aaf_config/bin/agent.sh local showpass \
43 {{.Values.fqi}} {{ .Values.fqdn }} | grep '^c' | xargs -0)
44 if [ -z "$cadi_keystore_password_p12" ]
46 echo " /!\ certificates retrieval failed"
49 cd {{ .Values.credsPath }};
51 echo "*** transform AAF certs into pem files"
52 mkdir -p {{ .Values.credsPath }}/certs
53 openssl pkcs12 -in {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.p12 \
54 -nokeys -out {{ .Values.credsPath }}/certs/cert.pem \
55 -passin pass:$cadi_keystore_password_p12 \
56 -passout pass:$cadi_keystore_password_p12
57 echo "*** copy key file"
58 cp {{ .Values.fqi_namespace }}.key certs/key.pem;
59 echo "*** change ownership of certificates to targeted user"
60 chown -R 1000 {{ .Values.credsPath }}
63 #################################################################
64 # Application configuration defaults.
65 #################################################################
70 image: onap/appc-cdt-image:1.7.2
73 # application configuration
76 # default number of instances
83 # probe configuration parameters
85 initialDelaySeconds: 10
87 # necessary to disable liveness probe when setting breakpoints
88 # in debugger so K8s doesn't restart unresponsive container
92 initialDelaySeconds: 10
111 # Configure resource requests and limits
112 # ref: http://kubernetes.io/docs/user-guide/compute-resources/