Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 79 for PolicyRule (0.15 sec)

  1. staging/src/k8s.io/apiserver/pkg/audit/policy/checker.go

    // the global policy default in Policy.OmitManagedFields.
    func isOmitManagedFields(policyRule *audit.PolicyRule, policyDefault bool) bool {
    	if policyRule.OmitManagedFields == nil {
    		return policyDefault
    	}
    
    	return *policyRule.OmitManagedFields
    }
    
    // Check whether the rule matches the request attrs.
    func ruleMatches(r *audit.PolicyRule, attrs authorizer.Attributes) bool {
    	user := attrs.GetUser()
    	if len(r.Users) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 02 22:24:14 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/apis/audit/v1/zz_generated.deepcopy.go

    		*out = new(bool)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule.
    func (in *PolicyRule) DeepCopy() *PolicyRule {
    	if in == nil {
    		return nil
    	}
    	out := new(PolicyRule)
    	in.DeepCopyInto(out)
    	return out
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 06 19:08:27 UTC 2021
    - 7.9K bytes
    - Viewed (0)
  3. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/namespace_policy.go

    	addNamespaceRole(metav1.NamespaceSystem, rbacv1.Role{
    		// role for finding authentication config info for starting a server
    		ObjectMeta: metav1.ObjectMeta{Name: "extension-apiserver-authentication-reader"},
    		Rules: []rbacv1.PolicyRule{
    			// this particular config map is exposed and contains authentication configuration information
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 7.4K bytes
    - Viewed (0)
  4. pkg/controller/clusterroleaggregation/clusterroleaggregation_controller.go

    }
    
    func toApplyPolicyRules(rules []rbacv1.PolicyRule) []*rbacv1ac.PolicyRuleApplyConfiguration {
    	var result []*rbacv1ac.PolicyRuleApplyConfiguration
    	for _, rule := range rules {
    		result = append(result, toApplyPolicyRule(rule))
    	}
    	return result
    }
    
    func toApplyPolicyRule(rule rbacv1.PolicyRule) *rbacv1ac.PolicyRuleApplyConfiguration {
    	result := rbacv1ac.PolicyRule()
    	result.Resources = rule.Resources
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. pkg/registry/rbac/validation/rule.go

    	visitor := &ruleAccumulator{}
    	r.VisitRulesFor(user, namespace, visitor.visit)
    	return visitor.rules, utilerrors.NewAggregate(visitor.errors)
    }
    
    type ruleAccumulator struct {
    	rules  []rbacv1.PolicyRule
    	errors []error
    }
    
    func (r *ruleAccumulator) visit(source fmt.Stringer, rule *rbacv1.PolicyRule, err error) bool {
    	if rule != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 02 16:51:16 UTC 2020
    - 11.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/apis/audit/zz_generated.deepcopy.go

    		*out = new(bool)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule.
    func (in *PolicyRule) DeepCopy() *PolicyRule {
    	if in == nil {
    		return nil
    	}
    	out := new(PolicyRule)
    	in.DeepCopyInto(out)
    	return out
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 06 19:08:27 UTC 2021
    - 7.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/rbac/v1alpha1/zz_generated.deepcopy.go

    		copy(*out, *in)
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule.
    func (in *PolicyRule) DeepCopy() *PolicyRule {
    	if in == nil {
    		return nil
    	}
    	out := new(PolicyRule)
    	in.DeepCopyInto(out)
    	return out
    }
    
    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 10.6K bytes
    - Viewed (0)
  8. pkg/apis/rbac/zz_generated.deepcopy.go

    		copy(*out, *in)
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule.
    func (in *PolicyRule) DeepCopy() *PolicyRule {
    	if in == nil {
    		return nil
    	}
    	out := new(PolicyRule)
    	in.DeepCopyInto(out)
    	return out
    }
    
    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 11.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/rbac/v1beta1/zz_generated.deepcopy.go

    		copy(*out, *in)
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule.
    func (in *PolicyRule) DeepCopy() *PolicyRule {
    	if in == nil {
    		return nil
    	}
    	out := new(PolicyRule)
    	in.DeepCopyInto(out)
    	return out
    }
    
    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 10.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/match_test.go

    				if !matchesPolicyRule(digest, &policyRule) {
    					t.Errorf("Fail: expected %s to match %#+v but it did not", fcfmt.Fmt(policyRule), digest)
    				}
    			}
    			for _, digest := range append(skippingRDigests, skippingNDigests...) {
    				if matchesPolicyRule(digest, &policyRule) {
    					t.Errorf("Fail: expected %s to not match %#+v but it did", fcfmt.Fmt(policyRule), digest)
    				}
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 13.3K bytes
    - Viewed (0)
Back to top