[SDC] Add missing dependency to cassandra chart
[oom.git] / kubernetes / sdc / components / sdc-wfd-be / templates / job.yaml
index be7d519..da3df90 100644 (file)
@@ -1,3 +1,4 @@
+{{/*
 # Copyright © 2017 Amdocs, AT&T, Bell Canada
 # Modifications Copyright © 2018  ZTE
 #
@@ -12,6 +13,7 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
+*/}}
 
 {{ if .Values.initJob.enabled }}
 apiVersion: batch/v1
@@ -35,7 +37,7 @@ spec:
       restartPolicy: Never
       initContainers:
         - name: {{ include "common.name" . }}-init-readiness
-          image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
+          image: {{ include "repositoryGenerator.image.readiness" . }}
           imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
           command:
           - /app/ready.py
@@ -59,11 +61,11 @@ spec:
               memory: 20Mi
       containers:
         - name: {{ include "common.name" . }}-job
-          image: "{{ include "common.repository" . }}/{{ .Values.configInitImage }}"
+          image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.configInitImage }}
           imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
           env:
           - name: CS_HOST
-            value: "{{ .Values.global.cassandra.serviceName }}"
+            value: "{{ .Values.global.sdc_cassandra.serviceName }}"
           - name: CS_PORT
             value: "{{ .Values.config.cassandraClientPort }}"
           - name: CS_AUTHENTICATE