From 0163012a8762e2b389092bca97d1f0a9039854c8 Mon Sep 17 00:00:00 2001 From: Valerii Onyshchenko Date: Thu, 25 Sep 2025 22:04:36 +0300 Subject: [PATCH] Fix serviceaccount --- charts/common/Chart.yaml | 2 +- charts/common/templates/_helpers.tpl | 2 +- charts/common/templates/deployment.yaml | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/charts/common/Chart.yaml b/charts/common/Chart.yaml index 6099aeb..6e36438 100644 --- a/charts/common/Chart.yaml +++ b/charts/common/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.9 +version: 0.1.10 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/common/templates/_helpers.tpl b/charts/common/templates/_helpers.tpl index 982b3c2..dc4d6bf 100644 --- a/charts/common/templates/_helpers.tpl +++ b/charts/common/templates/_helpers.tpl @@ -55,5 +55,5 @@ app.kubernetes.io/serviceName: {{ include "common.fullname" .}} Create the name of the service account to use */}} {{- define "common.serviceAccountName" -}} -{{- default "default" .Values.service.name }} +{{- default "default" .Values.serviceAccount.name }} {{- end }} diff --git a/charts/common/templates/deployment.yaml b/charts/common/templates/deployment.yaml index 082ed17..f123b6e 100644 --- a/charts/common/templates/deployment.yaml +++ b/charts/common/templates/deployment.yaml @@ -77,9 +77,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} - {{- if .Values.serviceAccount.create }} serviceAccountName: {{ include "common.serviceAccountName" . }} - {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} {{- if .Values.deployment.volumes }}