Skip to content

Commit

Permalink
fix: check subjects func (kyverno#8470)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly authored Sep 21, 2023
1 parent b692e3b commit f38011c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/utils/match/subjects.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ import (
)

// CheckSubjects return true if one of ruleSubjects exist in userInfo
func CheckSubjects(
ruleSubjects []rbacv1.Subject,
userInfo authenticationv1.UserInfo,
) bool {
func CheckSubjects(ruleSubjects []rbacv1.Subject, userInfo authenticationv1.UserInfo) bool {
for _, subject := range ruleSubjects {
switch subject.Kind {
case rbacv1.ServiceAccountKind:
Expand Down

0 comments on commit f38011c

Please sign in to comment.