[A1POLICYMANAGEMENT] Update chart with service account 15/124515/3
authorfarida azmy <farida.azmy.ext@orange.com>
Mon, 27 Sep 2021 18:57:13 +0000 (20:57 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 28 Sep 2021 22:20:08 +0000 (22:20 +0000)
Add service account to requirements, values and deployment/statefulset.

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

kubernetes/a1policymanagement/requirements.yaml
kubernetes/a1policymanagement/templates/statefulset.yaml
kubernetes/a1policymanagement/values.yaml

index ba5f5d5..401f2e3 100644 (file)
@@ -24,3 +24,6 @@ dependencies:
   - name: repositoryGenerator
     version: ~8.x-0
     repository: '@local'
+  - name: serviceAccount
+    version: ~8.x-0
+    repository: '@local'
index 54ee151..1d25f31 100644 (file)
@@ -106,6 +106,7 @@ spec:
         - name: {{ include "common.fullname" . }}
           mountPath: "/var/policy-management-service/database"
         resources: {{ include "common.resources" . | nindent 10 }}
+      serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
       volumes: {{ include "common.certInitializer.volumes" . | nindent 8 }}
         - name: {{ include "common.fullname" . }}-policy-conf-input
           configMap:
index 4768349..0f7c00d 100644 (file)
@@ -159,4 +159,8 @@ persistence:
   mountPath: /dockerdata-nfs
   mountSubPath: nonrtric/policymanagementservice
 
-
+#Pods Service Account
+serviceAccount:
+  nameOverride: a1policymanagement
+  roles:
+    - read