Skip to content

Commit

Permalink
Merge pull request #60 from hown3d/sa-annotations
Browse files Browse the repository at this point in the history
fix: possibility to add service account annotations
  • Loading branch information
prppedro authored May 26, 2022
2 parents fa78eef + 2a2cdd6 commit 85aa400
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rocketchat/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
4 changes: 4 additions & 0 deletions rocketchat/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 85aa400

Please sign in to comment.