From 1876ac73095e382a3e036d0be4c48a019df7b6a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=A2ne=20Pichou?= Date: Thu, 9 Jan 2025 12:02:48 +0100 Subject: [PATCH] Add service account to backup job --- templates/jobs/cronjob-backup.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/jobs/cronjob-backup.yaml b/templates/jobs/cronjob-backup.yaml index 43d84f1..a83c583 100644 --- a/templates/jobs/cronjob-backup.yaml +++ b/templates/jobs/cronjob-backup.yaml @@ -22,7 +22,8 @@ spec: template: spec: restartPolicy: Never - automountServiceAccountToken: false + serviceAccountName: {{ include "graphdb.serviceAccountName" . }} + automountServiceAccountToken: true {{- if .Values.jobs.schedulerName }} schedulerName: {{ .Values.jobs.schedulerName }} {{- end }}