Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Issue open-horizon#3951 - Minor bug in combineRoleBindingSubjects fun… #3952

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kube_operator/api_objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ func combineRoleBindingSubjects(subjects1 []rbacv1.Subject, subjects2 []rbacv1.S
// remove duplicate in the subjects array
submap := make(map[string]rbacv1.Subject)
for _, sub := range subs {
key := fmt.Sprintf("%v/%v/%v", sub.Namespace, sub.Kind, sub.Kind) // key is <namespace>/<kind>/<name>
key := fmt.Sprintf("%v/%v/%v", sub.Namespace, sub.Kind, sub.Name) // key is <namespace>/<kind>/<name>
submap[key] = sub
}

Expand Down
Loading