mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-09 10:42:22 +00:00
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
7a49dc8820
commit
3a8f1df20c
1 changed files with 1 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue