- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for APIGroupMatches (0.12 sec)
-
pkg/apis/rbac/v1/evaluation_helpers.go
for _, ruleVerb := range rule.Verbs { if ruleVerb == rbacv1.VerbAll { return true } if ruleVerb == requestedVerb { return true } } return false } func APIGroupMatches(rule *rbacv1.PolicyRule, requestedGroup string) bool { for _, ruleGroup := range rule.APIGroups { if ruleGroup == rbacv1.APIGroupAll { return true } if ruleGroup == requestedGroup { return true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 18 15:37:57 UTC 2023 - 3.8K bytes - Viewed (0) -
plugin/pkg/auth/authorizer/rbac/rbac.go
combinedResource = requestAttributes.GetResource() + "/" + requestAttributes.GetSubresource() } return rbacv1helpers.VerbMatches(rule, requestAttributes.GetVerb()) && rbacv1helpers.APIGroupMatches(rule, requestAttributes.GetAPIGroup()) && rbacv1helpers.ResourceMatches(rule, combinedResource, requestAttributes.GetSubresource()) && rbacv1helpers.ResourceNameMatches(rule, requestAttributes.GetName()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 24 10:13:50 UTC 2022 - 7.8K bytes - Viewed (0)