1 # Copyright © 2017 Amdocs, Bell Canada
2 # Copyright (c) 2022 Nordix Foundation.
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 # Default values for uui.
17 # This is a YAML-formatted file.
18 # Declare variables to be passed into your templates.
22 #################################################################
24 #################################################################
26 nameOverride: uui-cert-initializer
27 aafDeployFqi: deployer@people.osaaf.org
28 aafDeployPass: demo123456!
29 # aafDeployCredsExternalSecret: some secret
32 fqi_namespace: org.onap.uui
33 public_fqdn: uui.onap.org
37 credsPath: /opt/app/osaaf/local
39 echo "*** changing them into shell safe ones"
40 export KEYSTORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
41 export TRUSTSORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
42 cd {{ .Values.credsPath }}
43 keytool -storepasswd -new "${KEYSTORE_PASSWORD}" \
44 -storepass "${cadi_keystore_password_p12}" \
45 -keystore {{ .Values.fqi_namespace }}.p12
46 keytool -storepasswd -new "${TRUSTSORE_PASSWORD}" \
47 -storepass "${cadi_truststore_password}" \
48 -keystore {{ .Values.fqi_namespace }}.trust.jks
49 echo "*** save the generated passwords"
50 echo "KEYSTORE_PASSWORD=${KEYSTORE_PASSWORD}" > mycreds.prop
51 echo "TRUSTSORE_PASSWORD=${TRUSTSORE_PASSWORD}" >> mycreds.prop
52 echo "*** change ownership of certificates to targeted user"
53 chown -R 1000 {{ .Values.credsPath }}
61 image: onap/usecase-ui:5.1.2
64 # application configuration
66 msbaddr: msb-iag.{{include "common.namespace" .}}:80
67 mraddr: message-router.{{include "common.namespace" .}}:3904
69 # flag to enable debugging - application support required
72 # default number of instances
79 # probe configuration parameters
81 initialDelaySeconds: 10
83 # necessary to disable liveness probe when setting breakpoints
84 # in debugger so K8s doesn't restart unresponsive container
88 initialDelaySeconds: 10
101 msb.onap.org/service-info: |
102 {{ if .Values.global.msbEnabled -}}[
104 "serviceName": "usecaseui-ui",
106 "url": "/usecase-ui",
107 "path":"/iui/usecaseui",
110 {{ if (include "common.needTLS" .) }}
111 "port": "{{ include "common.getPort" (dict "global" . "name" "http") }}",
114 "port": "{{ include "common.getPort" (dict "global" . "name" "http" "getPlain" true) }}"
129 # We usually recommend not to specify default resources and to leave this as a conscious
130 # choice for the user. This also increases chances charts run on environments with little
131 # resources, such as Minikube. If you do want to specify resources, uncomment the following
132 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
135 # Configure resource requests and limits
136 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
137 # Minimum memory for development is 2 CPU cores and 4GB memory
138 # Minimum memory for production is 4 CPU cores and 8GB memory