commit | ffad032ca824606aa9c3f32f355d013e60f6142a | [log] [tgz] |
---|---|---|
author | farida azmy <farida.azmy.ext@orange.com> | Fri Apr 09 14:18:14 2021 +0200 |
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | Thu Jun 10 19:47:21 2021 +0000 |
tree | 83e268a2faa678da3bc8589e3af00c8fefaf3cfa | |
parent | 87411cc03c91a0ba7f26fcd9e7e4bd8afb75b24e [diff] |
[CDS] Update chart with service account Add service account to requirements.yaml, values.yaml and deployment/statefulset Issue-ID: OOM-2723 Signed-off-by: farida azmy <farida.azmy.ext@orange.com> Change-Id: Ic254ec1865501bab90f47d07a37b230c228a7446
diff --git a/kubernetes/cds/components/cds-command-executor/requirements.yaml b/kubernetes/cds/components/cds-command-executor/requirements.yaml index bd647a6..96ce828 100755 --- a/kubernetes/cds/components/cds-command-executor/requirements.yaml +++ b/kubernetes/cds/components/cds-command-executor/requirements.yaml
@@ -19,3 +19,6 @@ - name: repositoryGenerator version: ~8.x-0 repository: '@local' + - name: serviceAccount + version: ~8.x-0 + repository: '@local'
diff --git a/kubernetes/cds/components/cds-command-executor/templates/deployment.yaml b/kubernetes/cds/components/cds-command-executor/templates/deployment.yaml index 40238c2..523339c 100755 --- a/kubernetes/cds/components/cds-command-executor/templates/deployment.yaml +++ b/kubernetes/cds/components/cds-command-executor/templates/deployment.yaml
@@ -86,6 +86,7 @@ affinity: {{ toYaml .Values.affinity | indent 10 }} {{- end }} + serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} volumes: - name: localtime hostPath:
diff --git a/kubernetes/cds/components/cds-command-executor/values.yaml b/kubernetes/cds/components/cds-command-executor/values.yaml index f867565..12a7fe9 100755 --- a/kubernetes/cds/components/cds-command-executor/values.yaml +++ b/kubernetes/cds/components/cds-command-executor/values.yaml
@@ -91,3 +91,9 @@ cpu: 2 memory: 4Gi unlimited: {} + +#Pods Service Account +serviceAccount: + nameOverride: cds-command-executor + roles: + - read