2 # Copyright © 2020 highstreet technologies GmbH
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 {{ if .Values.config.sdnr.enabled -}}
19 metadata: {{- include "common.resourceMetadata" (dict "suffix" "sdnrdb-init-job" "dot" . ) | nindent 2 }}
23 metadata: {{ include "common.templateMetadata" . | indent 6}}
26 - name: {{ include "common.name" . }}-readiness
31 - {{.Values.elasticsearch.nameOverride}}-elasticsearch
33 - {{.Values.elasticsearch.nameOverride}}-nginx
35 - {{.Values.elasticsearch.nameOverride}}-master
41 fieldPath: metadata.namespace
42 image: {{ include "repositoryGenerator.image.readiness" . }}
43 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
45 - name: {{ include "common.name" . }}-sdnrdb-init-job
46 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
47 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
48 command: ["/bin/bash"]
52 sleep 90; "{{ .Values.config.binDir }}/startODL.sh"
54 - name: SDNC_AAF_ENABLED
57 value: "{{.Values.config.sdncHome}}"
59 value: "{{.Values.config.etcDir}}"
61 value: "{{.Values.config.binDir}}"
62 ## start sdnrdb parameter
66 value: "http://{{ .Values.elasticsearch.service.name | default "sdnrdb"}}.{{.Release.Namespace}}:{{.Values.elasticsearch.service.port | default "9200"}}"
67 - name: SDNRDBPARAMETER
69 resources: {{ include "common.resources" . | nindent 10 }}
70 {{- if include "common.onServiceMesh" . }}
71 - name: sdnrdb-service-mesh-wait-for-job-container
72 image: {{ include "repositoryGenerator.image.quitQuit" . }}
73 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
79 echo "waiting 30s for istio side cars to be up"; sleep 30s;
80 /app/ready.py --service-mesh-check sdnc-sdnrdb-init-job -t 45;
86 fieldPath: metadata.namespace
88 {{- if .Values.nodeSelector }}
89 nodeSelector: {{ toYaml .Values.nodeSelector | nindent 10 }}
91 {{- if .Values.affinity }}
92 affinity: {{ toYaml .Values.affinity | nindent 10 }}
94 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
99 - name: docker-entrypoint-initdb-d
103 name: {{ include "common.fullname" . }}-bin
107 name: {{ include "common.fullname" . }}-properties
111 - name: "{{ include "common.namespace" . }}-docker-registry-key"