Skip to content

Commit

Permalink
feat(helm): add option to disable rbac (#91)
Browse files Browse the repository at this point in the history
Signed-off-by: Hy3n4 <[email protected]>
  • Loading branch information
Hy3n4 authored Mar 20, 2024
1 parent 0263c95 commit 3a7cf79
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm/osko/templates/cluster-role-binding.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.rbac.create -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand All @@ -12,3 +13,4 @@ subjects:
- kind: ServiceAccount
name: {{ include "osko.fullname" . }}
namespace: {{ .Release.Namespace }}
{{- end }}
2 changes: 2 additions & 0 deletions helm/osko/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.rbac.create -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand Down Expand Up @@ -218,3 +219,4 @@ rules:
- get
- patch
- update
{{- end }}
3 changes: 3 additions & 0 deletions helm/osko/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""

rbac:
create: true

podAnnotations: {}

securityContext:
Expand Down

0 comments on commit 3a7cf79

Please sign in to comment.