From 0653829a0751f7d7aa3141a46f2262fa4ea9c59d Mon Sep 17 00:00:00 2001 From: zhenyus Date: Wed, 16 Apr 2025 06:27:49 +0800 Subject: [PATCH] fix: add serviceAccountName for OpenTelemetry collector in deployment configuration Signed-off-by: zhenyus --- .../authentication/templates/authentication/deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml index 8d376d9e..994c6fa3 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml @@ -29,6 +29,9 @@ spec: sidecar.opentelemetry.io/inject: "{{ .Release.Namespace}}/{{ .Release.Name }}-opentelemetry-collector" {{- end }} spec: +{{- if .Values.logIngest.enabled }} + serviceAccountName: "{{ .Release.Name }}-otel-collector" +{{- else }} containers: - name: "authentication" image: "{{ coalesce .Values.authentication.image.registry .Values.global.registry "docker.io"}}/{{ coalesce .Values.authentication.image.repository .Values.global.repository }}/{{ .Values.authentication.image.name }}:{{ .Values.authentication.image.tag | default "latest" }}"