Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ResourceMatches (0.12 sec)

  1. pkg/apis/rbac/helpers.go

    */
    
    package rbac
    
    import (
    	"fmt"
    	"strings"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    // ResourceMatches returns the result of the rule.Resources matching.
    func ResourceMatches(rule *PolicyRule, combinedRequestedResource, requestedSubresource string) bool {
    	for _, ruleResource := range rule.Resources {
    		// if everything is allowed, we match
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 23 15:11:00 UTC 2020
    - 12.1K bytes
    - Viewed (0)
Back to top