Skip to content

Commit

Permalink
Allow to add annotations on the serviceAccount managed by the helm chart
Browse files Browse the repository at this point in the history
Signed-off-by: signaleleven <michael.sacchi@signal-eleven.com>
Co-authored-by: JenTing Hsiao <hsiaoairplane@gmail.com>
  • Loading branch information
signaleleven authored and Michael Sacchi committed Dec 21, 2021
1 parent fb9d64c commit 215d4ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chart/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
4 changes: 4 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}

0 comments on commit 215d4ce

Please sign in to comment.