Skip to content

Commit

Permalink
Add template for ServiceAccount annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Dueck <[email protected]>
  • Loading branch information
crdueck committed Nov 1, 2023
1 parent e862159 commit 86d9308
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/opa-kube-mgmt/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ template "opa.serviceAccountName" .}}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{ toYaml . }}
{{- end }}
labels:
app: {{ template "opa.fullname" . }}
chart: {{ template "opa.chart" . }}
Expand Down
2 changes: 2 additions & 0 deletions charts/opa-kube-mgmt/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ rbac:
serviceAccount:
# Specifies whether a ServiceAccount should be created
create: true
# Annotations for the ServiceAccount
annotations: {}
# The name of the ServiceAccount to use.
# If not set and create is true, a name is generated using the fullname template
name:
Expand Down

0 comments on commit 86d9308

Please sign in to comment.