Fix Volumeclaim clash between MUSIC and AAI 21/71421/2
authorThomas Nelson Jr arthuerdent3 <nelson24@att.com>
Mon, 29 Oct 2018 21:03:59 +0000 (21:03 +0000)
committerThomas Nelson Jr arthuerdent3 <nelson24@att.com>
Tue, 30 Oct 2018 03:38:28 +0000 (03:38 +0000)
Update to fix name of volume to reduce
the amount of cassandra mentioned.

Change-Id: I20909b304a8bde517c71b479daac6dd0dbf43ca4
Issue-ID: MUSIC-156
Signed-off-by: Thomas Nelson Jr arthuerdent3 <nelson24@att.com>
kubernetes/common/music/charts/music-cassandra/templates/statefulset.yaml

index 103b1df..e67a2c3 100644 (file)
@@ -103,7 +103,7 @@ spec:
               fieldRef:
                 fieldPath: status.podIP
         volumeMounts:
-          - name: cassandra-data
+          - name: {{ template "common.name" . }}-data
             mountPath: /var/lib/cassandra
         resources:
 {{ toYaml .Values.resources | indent 10 }}
@@ -112,12 +112,12 @@ spec:
         hostPath:
           path: /etc/localtime
   {{- if not .Values.persistence.enabled }}
-      - name: cassandra-data
+      - name: {{ template "common.name" . }}-data
         emptyDir: {}
   {{- else }}
   volumeClaimTemplates:
     - metadata:
-        name: cassandra-data
+        name: {{ template "common.name" . }}-data
         labels:
           app: {{ template "common.fullname" . }}
           chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"