1 # Copyright © 2018 Amdocs, Bell Canada, AT&T
2 # Modifications Copyright © 2020 Orange
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 resources.
17 # This is a YAML-formatted file.
18 # Declare variables to be passed into your templates.
19 global: # global defaults
22 # Common configuration for resources traversal and graphadmin
24 # Specifies if the basic authorization is enabled
31 # Schema specific properties that include supported versions of api
34 # Specifies which folder to take a look at
37 # Base URI Path of the application
41 # Current version of the REST API
44 # Specifies which version the depth parameter is configurable
46 # List of all the supported versions of the API
47 list: v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26
48 # Specifies from which version related link should appear
51 # Specifies from which version the app root change happened
54 # Specifies from which version the xml namespace changed
57 # Specifies from which version the edge label appeared in API
61 #################################################################
62 # Certificate configuration
63 #################################################################
65 nameOverride: aai-schema-service-cert-initializer
66 aafDeployFqi: deployer@people.osaaf.org
67 aafDeployPass: demo123456!
68 # aafDeployCredsExternalSecret: some secret
69 fqdn: aai-schema-service
70 fqi: aai-schema-service@aai-schema-service.onap.org
71 public_fqdn: aai-schema-service.onap.org
75 credsPath: /opt/app/osaaf/local
76 fqi_namespace: org.onap.aai-schema-service
77 user_id: &user_id 1000
78 group_id: &group_id 1000
80 echo "*** changing them into shell safe ones"
81 export KEYSTORE_PLAIN_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
82 export TRUSTSTORE_PLAIN_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
83 cd {{ .Values.credsPath }}
84 keytool -storepasswd -new "${KEYSTORE_PLAIN_PASSWORD}" \
85 -storepass "${cadi_keystore_password_p12}" \
86 -keystore {{ .Values.fqi_namespace }}.p12
87 keytool -storepasswd -new "${TRUSTSTORE_PLAIN_PASSWORD}" \
88 -storepass "${cadi_truststore_password}" \
89 -keystore {{ .Values.fqi_namespace }}.trust.jks
90 echo "*** writing passwords into prop file"
91 echo "KEYSTORE_PLAIN_PASSWORD=${KEYSTORE_PLAIN_PASSWORD}" > {{ .Values.credsPath }}/mycreds.prop
92 echo "TRUSTSTORE_PLAIN_PASSWORD=${TRUSTSTORE_PLAIN_PASSWORD}" >> {{ .Values.credsPath }}/mycreds.prop
93 echo "*** change ownership of certificates to targeted user"
94 chown -R {{ .Values.user_id }}:{{ .Values.group_id }} {{ .Values.credsPath }}
97 image: onap/aai-schema-service:1.9.4
100 flavorOverride: small
101 # default number of instances
108 # probe configuration parameters
110 initialDelaySeconds: 60
112 # necessary to disable liveness probe when setting breakpoints
113 # in debugger so K8s doesn't restart unresponsive container
117 initialDelaySeconds: 60
130 # We usually recommend not to specify default resources and to leave this as a conscious
131 # choice for the user. This also increases chances charts run on environments with little
132 # resources, such as Minikube. If you do want to specify resources, uncomment the following
133 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
136 # Configure resource requests and limits
137 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
138 # Minimum memory for development is 2 CPU cores and 4GB memory
139 # Minimum memory for production is 4 CPU cores and 8GB memory
164 #Pods Service Account
166 nameOverride: aai-schema-service
170 # Not fully used for now
178 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'