aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/modeling/components/modeling-etsicatalog
diff options
context:
space:
mode:
authorfarida azmy <farida.azmy.ext@orange.com>2021-10-11 11:45:25 +0200
committerfarida azmy <farida.azmy.ext@orange.com>2021-10-11 11:45:25 +0200
commit24f41432fd71cec99c4a3d5345e053b37af00789 (patch)
treeede7793694d02297cf804ccde529ace86241648c /kubernetes/modeling/components/modeling-etsicatalog
parent612e372f07c1a828768930b674f5b27f66449dea (diff)
[MODELING] Update chart with service account
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
Diffstat (limited to 'kubernetes/modeling/components/modeling-etsicatalog')
-rw-r--r--kubernetes/modeling/components/modeling-etsicatalog/requirements.yaml3
-rw-r--r--kubernetes/modeling/components/modeling-etsicatalog/templates/deployment.yaml2
-rw-r--r--kubernetes/modeling/components/modeling-etsicatalog/values.yaml6
3 files changed, 10 insertions, 1 deletions
diff --git a/kubernetes/modeling/components/modeling-etsicatalog/requirements.yaml b/kubernetes/modeling/components/modeling-etsicatalog/requirements.yaml
index b9e4a44df1..6070b0c468 100644
--- a/kubernetes/modeling/components/modeling-etsicatalog/requirements.yaml
+++ b/kubernetes/modeling/components/modeling-etsicatalog/requirements.yaml
@@ -30,3 +30,6 @@ dependencies:
- name: repositoryGenerator
version: ~8.x-0
repository: '@local'
+ - name: serviceAccount
+ version: ~8.x-0
+ repository: '@local'
diff --git a/kubernetes/modeling/components/modeling-etsicatalog/templates/deployment.yaml b/kubernetes/modeling/components/modeling-etsicatalog/templates/deployment.yaml
index 1a303ff7aa..8e28071ba6 100644
--- a/kubernetes/modeling/components/modeling-etsicatalog/templates/deployment.yaml
+++ b/kubernetes/modeling/components/modeling-etsicatalog/templates/deployment.yaml
@@ -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 }}
diff --git a/kubernetes/modeling/components/modeling-etsicatalog/values.yaml b/kubernetes/modeling/components/modeling-etsicatalog/values.yaml
index 1672b6d3df..3af4bae554 100644
--- a/kubernetes/modeling/components/modeling-etsicatalog/values.yaml
+++ b/kubernetes/modeling/components/modeling-etsicatalog/values.yaml
@@ -177,3 +177,9 @@ resources:
cpu: 200m
memory: 500Mi
unlimited: {}
+
+#Pods Service Account
+serviceAccount:
+ nameOverride: modeling-etsicatalog
+ roles:
+ - read