[MODELING] Update chart with service account 80/124780/1
authorfarida azmy <farida.azmy.ext@orange.com>
Mon, 11 Oct 2021 09:45:25 +0000 (11:45 +0200)
committerfarida azmy <farida.azmy.ext@orange.com>
Mon, 11 Oct 2021 09:45:25 +0000 (11:45 +0200)
Add service account to requirements, values and deployment/statefulset

Issue-ID: OOM-2859
Signed-off-by: farida azmy <farida.azmy.ext@orange.com>
Change-Id: I86de438d6d3d9fb3b1db8e0ef90872aee0dfbab8

kubernetes/modeling/components/modeling-etsicatalog/requirements.yaml
kubernetes/modeling/components/modeling-etsicatalog/templates/deployment.yaml
kubernetes/modeling/components/modeling-etsicatalog/values.yaml

index b9e4a44..6070b0c 100644 (file)
@@ -30,3 +30,6 @@ dependencies:
   - name: repositoryGenerator
     version: ~8.x-0
     repository: '@local'
+  - name: serviceAccount
+    version: ~8.x-0
+    repository: '@local'
index 1a303ff..8e28071 100644 (file)
@@ -138,7 +138,7 @@ spec:
             mountPath: /var/log/onap
           - name: {{ include "common.fullname" . }}-data-filebeat
             mountPath: /usr/share/filebeat/data
-
+      serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
       volumes:
         - name: {{ include "common.fullname" . }}-etsicatalog
         {{- if .Values.persistence.enabled }}
index 1672b6d..3af4bae 100644 (file)
@@ -177,3 +177,9 @@ resources:
       cpu: 200m
       memory: 500Mi
   unlimited: {}
+
+#Pods Service Account
+serviceAccount:
+  nameOverride: modeling-etsicatalog
+  roles:
+    - read