summaryrefslogtreecommitdiffstats
path: root/kubernetes/portal/components/portal-sdk
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2022-03-02 13:26:45 +0000
committerGerrit Code Review <gerrit@onap.org>2022-03-02 13:26:45 +0000
commit313a088094582dbcee81eb2d1d1a9cd1e7fdaffc (patch)
tree2e8f29e8c33ecb70d5aecc2e0fc0bba189a9755d /kubernetes/portal/components/portal-sdk
parentb682891a41613e6fc6bc6730733aa9a1fee83a7e (diff)
parent31234fc165623b709e281882e2d2982d80d596e6 (diff)
Merge "[PORTAL] Update chart with service account"
Diffstat (limited to 'kubernetes/portal/components/portal-sdk')
-rw-r--r--kubernetes/portal/components/portal-sdk/Chart.yaml3
-rw-r--r--kubernetes/portal/components/portal-sdk/templates/deployment.yaml1
-rw-r--r--kubernetes/portal/components/portal-sdk/values.yaml5
3 files changed, 9 insertions, 0 deletions
diff --git a/kubernetes/portal/components/portal-sdk/Chart.yaml b/kubernetes/portal/components/portal-sdk/Chart.yaml
index 6535998331..02c17333ab 100644
--- a/kubernetes/portal/components/portal-sdk/Chart.yaml
+++ b/kubernetes/portal/components/portal-sdk/Chart.yaml
@@ -30,3 +30,6 @@ dependencies:
- name: repositoryGenerator
version: ~10.x-0
repository: '@local'
+ - name: serviceAccount
+ version: ~10.x-0
+ repository: '@local'
diff --git a/kubernetes/portal/components/portal-sdk/templates/deployment.yaml b/kubernetes/portal/components/portal-sdk/templates/deployment.yaml
index abc5daab80..66e80651c3 100644
--- a/kubernetes/portal/components/portal-sdk/templates/deployment.yaml
+++ b/kubernetes/portal/components/portal-sdk/templates/deployment.yaml
@@ -161,6 +161,7 @@ spec:
{{ toYaml .Values.affinity | indent 10 }}
{{- end }}
{{ include "common.log.sidecar" . | nindent 6 }}
+ serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
volumes:
- name: localtime
hostPath:
diff --git a/kubernetes/portal/components/portal-sdk/values.yaml b/kubernetes/portal/components/portal-sdk/values.yaml
index f0c3954c11..617ed100ef 100644
--- a/kubernetes/portal/components/portal-sdk/values.yaml
+++ b/kubernetes/portal/components/portal-sdk/values.yaml
@@ -166,3 +166,8 @@ resources:
log:
path: /var/log/onap
logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
+#Pods Service Account
+serviceAccount:
+ nameOverride: portal-sdk
+ roles:
+ - read