Skip to content

Commit 22e3894

Browse files
committed
fix: add missing rolebindings role defination (#335)
1 parent 87389a9 commit 22e3894

3 files changed

Lines changed: 98 additions & 0 deletions

File tree

config/rbac/role.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,3 +506,29 @@ rules:
506506
- get
507507
- patch
508508
- update
509+
- apiGroups:
510+
- resource.streamnative.io
511+
resources:
512+
- rolebindings
513+
verbs:
514+
- create
515+
- delete
516+
- get
517+
- list
518+
- patch
519+
- update
520+
- watch
521+
- apiGroups:
522+
- resource.streamnative.io
523+
resources:
524+
- rolebindings/finalizers
525+
verbs:
526+
- update
527+
- apiGroups:
528+
- resource.streamnative.io
529+
resources:
530+
- rolebindings/status
531+
verbs:
532+
- get
533+
- patch
534+
- update
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Copyright 2025 StreamNative
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# permissions for end users to edit rolebindings.
16+
apiVersion: rbac.authorization.k8s.io/v1
17+
kind: ClusterRole
18+
metadata:
19+
name: rolebinding-editor-role
20+
rules:
21+
- apiGroups:
22+
- resource.streamnative.io
23+
resources:
24+
- rolebindings
25+
verbs:
26+
- create
27+
- delete
28+
- get
29+
- list
30+
- patch
31+
- update
32+
- watch
33+
- apiGroups:
34+
- resource.streamnative.io
35+
resources:
36+
- rolebindings/status
37+
verbs:
38+
- get
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Copyright 2025 StreamNative
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# permissions for end users to view rolebindings.
16+
apiVersion: rbac.authorization.k8s.io/v1
17+
kind: ClusterRole
18+
metadata:
19+
name: rolebinding-viewer-role
20+
rules:
21+
- apiGroups:
22+
- resource.streamnative.io
23+
resources:
24+
- rolebindings
25+
verbs:
26+
- get
27+
- list
28+
- watch
29+
- apiGroups:
30+
- resource.streamnative.io
31+
resources:
32+
- rolebindings/status
33+
verbs:
34+
- get

0 commit comments

Comments
 (0)