From 8152936db3464125c3c3c8ea19f8eee83d38d780 Mon Sep 17 00:00:00 2001 From: Le Zhang Date: Fri, 17 Nov 2023 08:42:28 -0500 Subject: [PATCH] Issue open-horizon#3951 - Minor bug in combineRoleBindingSubjects function Signed-off-by: Le Zhang --- kube_operator/api_objects.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube_operator/api_objects.go b/kube_operator/api_objects.go index cfad1db47..842de9ad9 100644 --- a/kube_operator/api_objects.go +++ b/kube_operator/api_objects.go @@ -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 // + key := fmt.Sprintf("%v/%v/%v", sub.Namespace, sub.Kind, sub.Name) // key is // submap[key] = sub }