[COMMON] Update all ReadinessChecks
[oom.git] / kubernetes / sdc / components / sdc-cs / templates / job.yaml
index 8650fff..c715342 100644 (file)
@@ -34,12 +34,8 @@ spec:
         command:
         - /app/ready.py
         args:
-        - --app-name
-        {{- if .Values.global.sdc_cassandra.localCluster }}
-        - sdc-cs
-        {{- else }}
-        - cassandra
-        {{- end }}
+        - --service-name
+        - {{ .Values.global.sdc_cassandra.serviceName }}
         - "-t"
         - "15"
         env:
@@ -103,5 +99,4 @@ spec:
       - name: {{ include "common.fullname" . }}-cqlshrc
         configMap:
           name: {{ include "common.release" . }}-sdc-cqlshrc
-      imagePullSecrets:
-      - name: "{{ include "common.namespace" . }}-docker-registry-key"
+      {{- include "common.imagePullSecrets" . | nindent 6 }}