diff --git a/rocketchat/templates/serviceaccount.yaml b/rocketchat/templates/serviceaccount.yaml index f04493c..698ce11 100644 --- a/rocketchat/templates/serviceaccount.yaml +++ b/rocketchat/templates/serviceaccount.yaml @@ -7,5 +7,9 @@ metadata: helm.sh/chart: {{ include "rocketchat.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} name: {{ template "rocketchat.serviceAccountName" . }} {{- end -}} diff --git a/rocketchat/values.yaml b/rocketchat/values.yaml index 74d166e..2742735 100644 --- a/rocketchat/values.yaml +++ b/rocketchat/values.yaml @@ -140,6 +140,10 @@ securityContext: serviceAccount: # Specifies whether a ServiceAccount should be created create: true + + # Annotations to add to the ServiceAccount + annotations: {} + # eks.amazonaws.com/role-arn: arn:aws:iam::123456789012:role/dummyRole # The name of the ServiceAccount to use. # If not set and create is true, a name is generated using the fullname template