From 5093301c1d25daaa2e9a42fd7d1ed09c06693208 Mon Sep 17 00:00:00 2001 From: farida azmy Date: Sun, 12 Sep 2021 12:56:40 +0200 Subject: [DCAEMOD] Update chart with service account Add service account to requirements, values & deployment/statefulset Issue-ID: OOM-2827 Signed-off-by: farida azmy Change-Id: Icdf48ad2b443b0c360ee89b13cae5a0db6c74dce --- kubernetes/dcaemod/components/dcaemod-designtool/requirements.yaml | 3 +++ .../dcaemod/components/dcaemod-designtool/templates/deployment.yaml | 1 + kubernetes/dcaemod/components/dcaemod-designtool/values.yaml | 6 ++++++ 3 files changed, 10 insertions(+) (limited to 'kubernetes/dcaemod/components/dcaemod-designtool') diff --git a/kubernetes/dcaemod/components/dcaemod-designtool/requirements.yaml b/kubernetes/dcaemod/components/dcaemod-designtool/requirements.yaml index 0972e6b6b9..233f6e4651 100644 --- a/kubernetes/dcaemod/components/dcaemod-designtool/requirements.yaml +++ b/kubernetes/dcaemod/components/dcaemod-designtool/requirements.yaml @@ -22,3 +22,6 @@ dependencies: - name: repositoryGenerator version: ~8.x-0 repository: '@local' + - name: serviceAccount + version: ~8.x-0 + repository: '@local' diff --git a/kubernetes/dcaemod/components/dcaemod-designtool/templates/deployment.yaml b/kubernetes/dcaemod/components/dcaemod-designtool/templates/deployment.yaml index bd2766f6db..556ac90e02 100644 --- a/kubernetes/dcaemod/components/dcaemod-designtool/templates/deployment.yaml +++ b/kubernetes/dcaemod/components/dcaemod-designtool/templates/deployment.yaml @@ -84,5 +84,6 @@ spec: value: {{ .Values.config.nifiJarsIndexURL }} - name: NIFI_DCAE_DISTRIBUTOR_API_URL value: {{ .Values.config.distributorAPIURL }} + serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" diff --git a/kubernetes/dcaemod/components/dcaemod-designtool/values.yaml b/kubernetes/dcaemod/components/dcaemod-designtool/values.yaml index 74c7bdb223..86aad57b1b 100644 --- a/kubernetes/dcaemod/components/dcaemod-designtool/values.yaml +++ b/kubernetes/dcaemod/components/dcaemod-designtool/values.yaml @@ -90,3 +90,9 @@ resources: cpu: 2 memory: 2Gi unlimited: {} + +#Pods Service Account +serviceAccount: + nameOverride: dcaemod-designtool + roles: + - read -- cgit 1.2.3-korg