[OOM] Update Cassandra in common with service account 43/118943/17
authorfarida azmy <farida.azmy.ext@orange.com>
Tue, 9 Mar 2021 09:38:20 +0000 (11:38 +0200)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 12 Jul 2021 15:52:18 +0000 (15:52 +0000)
Add service account to requirements.yaml, values.yaml and
deployment/statefulset

Issue-ID: OOM-2703
Signed-off-by: farida azmy <farida.azmy.ext@orange.com>
Co-authored-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I226584b16b2cd1c22a4e71eb48ad95d974640006

kubernetes/common/cassandra/requirements.yaml
kubernetes/common/cassandra/templates/statefulset.yaml
kubernetes/common/cassandra/values.yaml

index 501cc89..f2860ff 100644 (file)
@@ -20,3 +20,6 @@ dependencies:
   - name: repositoryGenerator
     version: ~8.x-0
     repository: 'file://../repositoryGenerator'
+  - name: serviceAccount
+    version: ~8.x-0
+    repository: 'file://../serviceAccount'
index 3553cd4..2b7e006 100644 (file)
@@ -138,6 +138,7 @@ spec:
       {{- if .Values.affinity }}
       affinity: {{ toYaml .Values.affinity | nindent 8 }}
       {{- end }}
+      serviceAccountName: {{ include "common.fullname" (dict "suffix" "nothing" "dot" . )}}
       volumes:
       - name: localtime
         hostPath:
index 9f19bf5..1d69993 100644 (file)
@@ -162,3 +162,9 @@ backup:
   - name: system_traces
   - name: system_auth
   - name: system_distributed
+
+#Pods Service Account
+serviceAccount:
+  nameOverride: cassandra
+  roles:
+    - nothing