1 # Copyright © 2017 Amdocs, Bell Canada
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 # Default values for uui.
16 # This is a YAML-formatted file.
17 # Declare variables to be passed into your templates.
21 #################################################################
23 #################################################################
25 nameOverride: uui-cert-initializer
26 aafDeployFqi: deployer@people.osaaf.org
27 aafDeployPass: demo123456!
28 # aafDeployCredsExternalSecret: some secret
31 fqi_namespace: org.onap.uui
32 public_fqdn: uui.onap.org
36 credsPath: /opt/app/osaaf/local
38 echo "*** changing them into shell safe ones"
39 export KEYSTORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
40 export TRUSTSORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
41 cd {{ .Values.credsPath }}
42 keytool -storepasswd -new "${KEYSTORE_PASSWORD}" \
43 -storepass "${cadi_keystore_password_p12}" \
44 -keystore {{ .Values.fqi_namespace }}.p12
45 keytool -storepasswd -new "${TRUSTSORE_PASSWORD}" \
46 -storepass "${cadi_truststore_password}" \
47 -keystore {{ .Values.fqi_namespace }}.trust.jks
48 echo "*** save the generated passwords"
49 echo "KEYSTORE_PASSWORD=${KEYSTORE_PASSWORD}" > mycreds.prop
50 echo "TRUSTSORE_PASSWORD=${TRUSTSORE_PASSWORD}" >> mycreds.prop
51 echo "*** change ownership of certificates to targeted user"
52 chown -R 1000 {{ .Values.credsPath }}
60 image: onap/usecase-ui:5.1.1
63 # application configuration
65 msbaddr: msb-iag.{{include "common.namespace" .}}:80
66 mraddr: message-router.{{include "common.namespace" .}}:3904
68 # flag to enable debugging - application support required
71 # default number of instances
78 # probe configuration parameters
80 initialDelaySeconds: 10
82 # necessary to disable liveness probe when setting breakpoints
83 # in debugger so K8s doesn't restart unresponsive container
87 initialDelaySeconds: 10
106 # We usually recommend not to specify default resources and to leave this as a conscious
107 # choice for the user. This also increases chances charts run on environments with little
108 # resources, such as Minikube. If you do want to specify resources, uncomment the following
109 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
112 # Configure resource requests and limits
113 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
114 # Minimum memory for development is 2 CPU cores and 4GB memory
115 # Minimum memory for production is 4 CPU cores and 8GB memory