From 1dedf7d37fb5b614f754b10f37f8e5f66eea00fe Mon Sep 17 00:00:00 2001 From: signaleleven Date: Fri, 17 Dec 2021 17:00:35 +0100 Subject: [PATCH] Allow to add annotations on the serviceAccount managed by the helm chart Signed-off-by: signaleleven Co-authored-by: JenTing Hsiao --- chart/templates/serviceaccount.yaml | 4 ++++ chart/values.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/chart/templates/serviceaccount.yaml b/chart/templates/serviceaccount.yaml index ad576c3..f5db731 100644 --- a/chart/templates/serviceaccount.yaml +++ b/chart/templates/serviceaccount.yaml @@ -4,3 +4,7 @@ metadata: name: longhorn-service-account namespace: {{ include "release_namespace" . }} labels: {{- include "longhorn.labels" . | nindent 4 }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} \ No newline at end of file diff --git a/chart/values.yaml b/chart/values.yaml index e9852e1..f0153fa 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -226,3 +226,7 @@ namespaceOverride: "" # Annotations to add to the Longhorn Manager DaemonSet Pods. Optional. annotations: {} + +serviceAccount: + # Annotations to add to the service account + annotations: {} \ No newline at end of file