Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDefaultRuleResolver (0.5 sec)

  1. pkg/registry/rbac/validation/rule_test.go

    func (b byHash) Len() int           { return len(b) }
    func (b byHash) Less(i, j int) bool { return hashOf(b[i]) < hashOf(b[j]) }
    func (b byHash) Swap(i, j int)      { b[i], b[j] = b[j], b[i] }
    
    func TestDefaultRuleResolver(t *testing.T) {
    	ruleReadPods := rbacv1.PolicyRule{
    		Verbs:     []string{"GET", "WATCH"},
    		APIGroups: []string{"v1"},
    		Resources: []string{"pods"},
    	}
    	ruleReadServices := rbacv1.PolicyRule{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top