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

Commit

Permalink
Updated Chart with RBAC feature flag
Browse files Browse the repository at this point in the history
Signed-off-by: Aninda Mukherjee <[email protected]>
  • Loading branch information
amukherjeeupgrade committed Feb 23, 2023
1 parent ced57b6 commit 30606ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chart/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
Expand All @@ -10,7 +11,7 @@ metadata:
{{- end }}

---
{{- if .Values.serviceAccount.create }}
{{- 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 30606ff

Please sign in to comment.