[CASSANDRA] Add Reaper and Stargate label checked by SDC/AAI
[oom.git] / kubernetes / sdc / components / sdc-cs / templates / job.yaml
index 31ab047..8082054 100644 (file)
@@ -34,11 +34,11 @@ spec:
         command:
         - /app/ready.py
         args:
-        - --container-name
+        - --app-name
         {{- if .Values.global.sdc_cassandra.localCluster }}
-        - sdc-cs
+        - {{ ternary "sdc-cs-reaper" "sdc-cs" .Values.global.sdc_cassandra.useOperator }}
         {{- else }}
-        - cassandra
+        - {{ ternary "cassandra-reaper" "cassandra" .Values.global.sdc_cassandra.useOperator }}
         {{- end }}
         - "-t"
         - "15"
@@ -64,6 +64,8 @@ spec:
           mountPath: /home/sdc/chef-solo/environments/
         - name: {{ include "common.fullname" . }}-chef-cache
           mountPath: /home/sdc/chef-solo/cache
+        - name: {{ include "common.fullname" . }}-cqlshrc
+          mountPath: /home/sdc/.cassandra
         env:
         - name: ENVNAME
           value: {{ .Values.env.name }}
@@ -98,6 +100,8 @@ spec:
           defaultMode: 0755
       - name: {{ include "common.fullname" . }}-chef-cache
         emptyDir: {}
+      - name: {{ include "common.fullname" . }}-cqlshrc
+        configMap:
+          name: {{ include "common.release" . }}-sdc-cqlshrc
       imagePullSecrets:
       - name: "{{ include "common.namespace" . }}-docker-registry-key"
-      restartPolicy: Never