- Sort Score
- Result 10 results
- Languages All
Results 11 - 13 of 13 for RulesFor (0.13 sec)
-
plugin/pkg/auth/authorizer/node/node_authorizer.go
svcAcctResource = api.Resource("serviceaccounts") leaseResource = coordapi.Resource("leases") csiNodeResource = storageapi.Resource("csinodes") ) func (r *NodeAuthorizer) RulesFor(user user.Info, namespace string) ([]authorizer.ResourceRuleInfo, []authorizer.NonResourceRuleInfo, bool, error) { if _, isNode := r.identifier.NodeIdentity(user); isNode { // indicate nodes do not have fully enumerated permissions
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 16K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook.go
default: return authorizer.DecisionNoOpinion, r.Status.Reason, nil } } // TODO: need to finish the method to get the rules when using webhook mode func (w *WebhookAuthorizer) RulesFor(user user.Info, namespace string) ([]authorizer.ResourceRuleInfo, []authorizer.NonResourceRuleInfo, bool, error) { var ( resourceRules []authorizer.ResourceRuleInfo nonResourceRules []authorizer.NonResourceRuleInfo
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 04 19:01:15 UTC 2024 - 18.4K bytes - Viewed (0) -
pkg/auth/authorizer/abac/abac_test.go
}, }, }, } for i, tc := range testCases { attr := authorizer.AttributesRecord{ User: &tc.User, Namespace: tc.Namespace, } resourceRules, nonResourceRules, _, _ := a.RulesFor(attr.GetUser(), attr.GetNamespace()) actualResourceRules := getResourceRules(resourceRules) if !reflect.DeepEqual(tc.ExpectResourceRules, actualResourceRules) { t.Logf("tc: %v -> attr %v", tc, attr)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 24 15:14:54 UTC 2019 - 40K bytes - Viewed (0)