Skip to content

Commit

Permalink
Update managedclusterrolebinding_controller.go
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Sep 9, 2024
1 parent b7fa898 commit dc69dd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (r *ManagedClusterRoleBindingReconciler) SetupWithManager(mgr ctrl.Manager)
}

func getSubject(managedCRB authzv1alpah1.ManagedClusterRoleBinding) []rbac.Subject {
var subs []rbac.Subject
subs := make([]rbac.Subject, 0, len(managedCRB.Subjects))
for _, sub := range managedCRB.Subjects {
subs = append(subs, rbac.Subject{
APIGroup: sub.APIGroup,
Expand Down

0 comments on commit dc69dd3

Please sign in to comment.