From 6212653fb318e884a8d3691bab3d4586cc7865c6 Mon Sep 17 00:00:00 2001 From: Andreas Geissler Date: Tue, 8 Aug 2023 12:57:52 +0200 Subject: [COMMON] Fix for ServiceAccount in network-name-gen Added missing SA definition in values.yaml and changed location in deployment.yaml Issue-ID: OOM-3199 Change-Id: I1d488e8d0d65c4cd3cf0ae21d22fa1143c8d64ab Signed-off-by: Andreas Geissler --- kubernetes/common/network-name-gen/templates/deployment.yaml | 2 +- kubernetes/common/network-name-gen/values.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'kubernetes/common') diff --git a/kubernetes/common/network-name-gen/templates/deployment.yaml b/kubernetes/common/network-name-gen/templates/deployment.yaml index 940132f477..b170c8fea6 100644 --- a/kubernetes/common/network-name-gen/templates/deployment.yaml +++ b/kubernetes/common/network-name-gen/templates/deployment.yaml @@ -102,10 +102,10 @@ spec: {{ toYaml .Values.nodeSelector | indent 10 }} {{- end -}} {{- if .Values.affinity }} - serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} affinity: {{ toYaml .Values.affinity | indent 10 }} {{- end }} + serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} volumes: - name: certs secret: diff --git a/kubernetes/common/network-name-gen/values.yaml b/kubernetes/common/network-name-gen/values.yaml index e3fdb80e71..5858e84389 100644 --- a/kubernetes/common/network-name-gen/values.yaml +++ b/kubernetes/common/network-name-gen/values.yaml @@ -135,3 +135,9 @@ ingress: enabled: false resources: {} + +#Pods Service Account +serviceAccount: + nameOverride: network-name-gen + roles: + - read \ No newline at end of file -- cgit 1.2.3-korg