Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ResourceNameMatches (0.24 sec)

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

    			strings.HasPrefix(ruleResource, "*/") &&
    			strings.HasSuffix(ruleResource, requestedSubresource) {
    			return true
    
    		}
    	}
    
    	return false
    }
    
    func ResourceNameMatches(rule *rbacv1.PolicyRule, requestedName string) bool {
    	if len(rule.ResourceNames) == 0 {
    		return true
    	}
    
    	for _, ruleName := range rule.ResourceNames {
    		if ruleName == requestedName {
    			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.APIGroupMatches(rule, requestAttributes.GetAPIGroup()) &&
    			rbacv1helpers.ResourceMatches(rule, combinedResource, requestAttributes.GetSubresource()) &&
    			rbacv1helpers.ResourceNameMatches(rule, requestAttributes.GetName())
    	}
    
    	return rbacv1helpers.VerbMatches(rule, requestAttributes.GetVerb()) &&
    		rbacv1helpers.NonResourceURLMatches(rule, requestAttributes.GetPath())
    }
    
    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