- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewRuleResolvers (0.12 sec)
-
staging/src/k8s.io/apiserver/pkg/authorization/union/union.go
} // unionAuthzRulesHandler authorizer against a chain of authorizer.RuleResolver type unionAuthzRulesHandler []authorizer.RuleResolver // NewRuleResolvers returns an authorizer that authorizes against a chain of authorizer.Authorizer objects func NewRuleResolvers(authorizationHandlers ...authorizer.RuleResolver) authorizer.RuleResolver { return unionAuthzRulesHandler(authorizationHandlers) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jun 28 20:27:28 UTC 2020 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authorization/union/union_test.go
}, { Verbs: []string{"get"}, APIGroups: []string{"*"}, Resources: []string{"*"}, ResourceNames: []string{"foo"}, }, } authzRulesHandler := NewRuleResolvers(handler1, handler2) rules, _, _, _ := authzRulesHandler.RulesFor(nil, "") actual := getResourceRules(rules) if !reflect.DeepEqual(expected, actual) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 24 15:14:54 UTC 2019 - 7.7K bytes - Viewed (0) -
pkg/kubeapiserver/authorizer/reload.go
default: return nil, nil, fmt.Errorf("unknown authorization mode %s specified", configuredAuthorizer.Type) } } return union.New(authorizers...), union.NewRuleResolvers(ruleResolvers...), nil } type kubeapiserverWebhookMetrics struct { // kube-apiserver doesn't report request metrics webhookmetrics.NoopRequestMetrics // kube-apiserver does report webhook metrics
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 04 19:01:15 UTC 2024 - 9.3K bytes - Viewed (0)