Skip to content

Commit 3eecf42

Browse files
committed
fix: GetClusterRoleBindings to return filtered bindings instead of all bindings
1 parent 2d4d1c3 commit 3eecf42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/services/k8s/serviceaccounts/serviceaccounts.service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ func (svc *serviceAccountsService) GetClusterRoleBindings(
186186
"username",
187187
username,
188188
"count",
189-
len(bindings.Items),
189+
len(filteredBindings),
190190
)
191-
return bindings.Items, nil
191+
return filteredBindings, nil
192192
}
193193

194194
// CreateClusterRoleBinding creates a cluster role binding for the service account.

0 commit comments

Comments
 (0)