Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
fix: ServiceAccount Template generation issue (#392)
Browse files Browse the repository at this point in the history
Co-authored-by: Giovanni Liva <[email protected]>
  • Loading branch information
amukherjeeupgrade and thisthat authored Feb 23, 2023
1 parent 6c763c9 commit 4d612c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chart/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ metadata:
{{- end }}

---
{{- if .Values.serviceAccount.createRBAC }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand Down Expand Up @@ -83,3 +84,4 @@ subjects:

{{- end }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: true
# Specifies whether RBAC should be created
createRBAC: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
Expand Down

0 comments on commit 4d612c0

Please sign in to comment.