Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NonResourceURLMatches (0.49 sec)

  1. pkg/apis/rbac/v1/evaluation_helpers.go

    	if len(rule.ResourceNames) == 0 {
    		return true
    	}
    
    	for _, ruleName := range rule.ResourceNames {
    		if ruleName == requestedName {
    			return true
    		}
    	}
    
    	return false
    }
    
    func NonResourceURLMatches(rule *rbacv1.PolicyRule, requestedURL string) bool {
    	for _, ruleURL := range rule.NonResourceURLs {
    		if ruleURL == rbacv1.NonResourceAll {
    			return true
    		}
    		if ruleURL == requestedURL {
    			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)
  2. plugin/pkg/auth/authorizer/rbac/rbac.go

    			rbacv1helpers.ResourceNameMatches(rule, requestAttributes.GetName())
    	}
    
    	return rbacv1helpers.VerbMatches(rule, requestAttributes.GetVerb()) &&
    		rbacv1helpers.NonResourceURLMatches(rule, requestAttributes.GetPath())
    }
    
    type RoleGetter struct {
    	Lister rbaclisters.RoleLister
    }
    
    func (g *RoleGetter) GetRole(namespace, name string) (*rbacv1.Role, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 24 10:13:50 UTC 2022
    - 7.8K bytes
    - Viewed (0)
Back to top