Skip to content

Commit

Permalink
Add role & roleBinding
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Morrison committed Jul 23, 2023
1 parent 8d937a6 commit c8cb715
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charts/kubechecks/templates/role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ include "kubechecks.fullname" . }}
rules:
- apiGroups: ['*']
resources: ['applications', 'appprojects', 'services']
verbs: ['*']
11 changes: 11 additions & 0 deletions charts/kubechecks/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ include "kubechecks.fullname" . }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ include "kubechecks.fullname" . }}
subjects:
- kind: ServiceAccount
name: {{ include "kubechecks.serviceAccountName" . }}

0 comments on commit c8cb715

Please sign in to comment.