blob: a9da8422de1c612406e3206124808d48ad6ac7e5 [file] [log] [blame]
Mohammed Naser65cda132024-05-02 14:34:08 -04001{{- if .Values.rbacAggregate.enableOBCs }}
2apiVersion: rbac.authorization.k8s.io/v1
3kind: ClusterRole
4metadata:
5 name: rook-ceph-obc-view
6 labels:
7 rbac.authorization.k8s.io/aggregate-to-view: "true"
8rules:
9- apiGroups:
10 - objectbucket.io
11 resources:
12 - objectbucketclaims
13 verbs:
14 - get
15 - list
16 - watch
17---
18apiVersion: rbac.authorization.k8s.io/v1
19kind: ClusterRole
20metadata:
21 name: rook-ceph-obc-edit
22 labels:
23 rbac.authorization.k8s.io/aggregate-to-edit: "true"
24rules:
25- apiGroups:
26 - objectbucket.io
27 resources:
28 - objectbucketclaims
29 verbs:
30 - create
31 - delete
32 - deletecollection
33 - patch
34 - update
35{{- end }}