Skip to content

Commit 87de5af

Browse files
authored
fix role name in rolebinding (#23)
1 parent 13d000c commit 87de5af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

OWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ approvers:
22
- chenzhiwei
33
- DanielXLee
44
- horis233
5-
- jinchun-dev
5+
- Daniel-Fan
66
reviewers:
77
- chenzhiwei
88
- DanielXLee
99
- horis233
10-
- jinchun-dev
10+
- Daniel-Fan

controllers/namespacescope_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ func (r *NamespaceScopeReconciler) CreateUpdateRoleBinding(labels map[string]str
363363
Subjects: subjects,
364364
RoleRef: rbacv1.RoleRef{
365365
Kind: "Role",
366-
Name: constant.NamespaceScopeManagedRoleName + fromNs,
366+
Name: constant.NamespaceScopeManagedRoleName + labels["projectedfrom"],
367367
APIGroup: "rbac.authorization.k8s.io",
368368
},
369369
}

0 commit comments

Comments
 (0)