Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for matchPolicyRuleResource (0.19 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/rule.go

    	return false
    }
    
    func matchesResourcePolicyRule(ri *request.RequestInfo, policyRule flowcontrol.ResourcePolicyRule) bool {
    	if !matchPolicyRuleVerb(policyRule.Verbs, ri.Verb) {
    		return false
    	}
    	if !matchPolicyRuleResource(policyRule.Resources, ri.Resource, ri.Subresource) {
    		return false
    	}
    	if !matchPolicyRuleAPIGroup(policyRule.APIGroups, ri.APIGroup) {
    		return false
    	}
    	if len(ri.Namespace) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 6.3K bytes
    - Viewed (0)
Back to top