1 # Copyright © 2017 Amdocs, Bell Canada, AT&T
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.
18 name: {{ include "common.fullname" . }}-dbinit-job
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ include "common.release" . }}
24 heritage: {{ .Release.Service }}
26 "helm.sh/hook": post-install
27 "helm.sh/hook-weight": "0"
28 "helm.sh/hook-delete-policy": before-hook-creation
34 app: {{ include "common.name" . }}-job
35 release: {{ include "common.release" . }}
36 name: {{ include "common.name" . }}
39 - name: {{ include "common.name" . }}-readiness
44 - {{ .Values.config.mariadbGalera.chartName }}
50 fieldPath: metadata.namespace
51 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
52 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 - name: {{ include "common.name" . }}
55 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
56 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
58 - name: MYSQL_PASSWORD
61 name: {{ template "common.fullname" . }}
63 - name: ODL_ADMIN_PASSWORD
66 name: {{ template "common.fullname" . }}-odl
68 - name: SDNC_DB_PASSWORD
71 name: {{ template "common.fullname" . }}-sdnctl
72 key: db-sdnctl-password
74 value: "{{.Values.config.mariadbGalera.serviceName}}.{{.Release.Namespace}}"
76 value: "{{.Values.config.sdncHome}}"
78 value: "{{.Values.config.etcDir}}"
80 value: "{{.Values.config.binDir}}"
82 value: "{{.Values.config.dbSdnctlUser}}"
83 - name: SDNC_DB_DATABASE
84 value: "{{.Values.config.dbSdnctlDatabase}}"
86 - mountPath: {{ .Values.config.binDir }}/installSdncDb.sh
88 subPath: installSdncDb.sh
89 - mountPath: {{ .Values.config.configDir }}/svclogic.properties
91 subPath: svclogic.properties
92 - mountPath: /opt/onap/sdnc/svclogic/config/svclogic.properties
94 subPath: svclogic.properties
95 - mountPath: {{ .Values.config.configDir }}/dblib.properties
97 subPath: dblib.properties
101 - {{.Values.config.binDir }}/installSdncDb.sh
103 {{ include "common.resources" . | indent 12 }}
104 {{- if .Values.nodeSelector }}
106 {{ toYaml .Values.nodeSelector | indent 10 }}
108 {{- if .Values.affinity }}
110 {{ toYaml .Values.affinity | indent 10 }}
116 - name: docker-entrypoint-initdb-d
120 name: {{ include "common.fullname" . }}-bin
124 name: {{ include "common.fullname" . }}-properties
128 - name: "{{ include "common.namespace" . }}-docker-registry-key"