1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2022 CMCC Corporation
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.
19 #################################################################
20 # Global configuration defaults.
21 #################################################################
27 name: &pgRootPassSecretName '{{ include "common.release" . }}-uui-pg-root-pass'
29 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "uui-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
30 password: '{{ .Values.postgres.config.pgRootpassword }}'
33 name: &pgUserCredsSecretName '{{ include "common.release" . }}-uui-pg-user-creds'
35 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "uui-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
36 login: '{{ .Values.postgres.config.pgUserName }}'
37 password: '{{ .Values.postgres.config.pgUserPassword }}'
38 passwordPolicy: generate
40 #################################################################
41 # Application configuration defaults.
42 #################################################################
50 repository: nexus3.onap.org:10001
51 image: onap/usecase-ui-server:5.2.1
54 # application configuration
56 msbaddr: msb-iag.{{include "common.namespace" .}}:80
57 mraddr: message-router.{{include "common.namespace" .}}:3904
59 # application configuration override for postgres
61 nameOverride: &postgresName uui-server-postgres
64 name2: uui-server-pg-primary
65 name3: uui-server-pg-replica
68 primary: uui-server-pg-primary
69 replica: uui-server-pg-replica
71 mountSubPath: uui/uuiserver/data
72 mountInitPath: uui/uuiserver
76 pgUserExternalSecret: *pgUserCredsSecretName
77 pgRootPasswordExternalSecret: *pgRootPassSecretName
81 # flag to enable debugging - application support required
84 # default number of instances
91 # probe configuration parameters
93 initialDelaySeconds: 120
95 # necessary to disable liveness probe when setting breakpoints
96 # in debugger so K8s doesn't restart unresponsive container
100 initialDelaySeconds: 60
112 msb.onap.org/service-info: |
113 {{ if .Values.global.msbEnabled -}}[
115 "serviceName": "usecaseui-server",
117 "url": "/api/usecase-server/v1",
118 "path":"/iui/usecaseui",
121 "port": "{{ include "common.getPort" (dict "global" . "name" "http" "getPlain" true) }}",
129 - baseaddr: "uui-server-api"
133 # We usually recommend not to specify default resources and to leave this as a conscious
134 # choice for the user. This also increases chances charts run on environments with little
135 # resources, such as Minikube. If you do want to specify resources, uncomment the following
136 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
139 # Configure resource requests and limits
140 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
141 # Minimum memory for development is 2 CPU cores and 4GB memory
142 # Minimum memory for production is 4 CPU cores and 8GB memory
161 nameOverride: uui-server
169 wait_for_job_container:
171 - '{{ include "common.name" . }}-job'