[NBI] Update chart with service account 68/125068/5
authorfarida azmy <farida.azmy.ext@orange.com>
Mon, 18 Oct 2021 11:06:52 +0000 (13:06 +0200)
committerFarida Azmy <farida.azmy.ext@orange.com>
Wed, 27 Oct 2021 14:17:24 +0000 (14:17 +0000)
Add service account to requirements, values and deployment/statefulset

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

kubernetes/nbi/requirements.yaml
kubernetes/nbi/templates/deployment.yaml
kubernetes/nbi/values.yaml

index f54b915..69d6f51 100644 (file)
@@ -37,3 +37,6 @@ dependencies:
   - name: repositoryGenerator
     version: ~9.x-0
     repository: '@local'
+  - name: serviceAccount
+    version: ~9.x-0
+    repository: '@local'
index d5f209e..b9ed35b 100644 (file)
@@ -146,6 +146,7 @@ spec:
         affinity:
 {{ toYaml .Values.affinity | indent 10 }}
         {{- end }}
+      serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
       volumes: {{ include "common.certInitializer.volumes" . | nindent 8 }}
         - name: localtime
           hostPath:
index a3dc897..92788e4 100644 (file)
@@ -181,3 +181,9 @@ resources:
       cpu: 200m
       memory: 2Gi
   unlimited: {}
+
+#Pods Service Account
+serviceAccount:
+  nameOverride: nbi
+  roles:
+    - read