Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 580 for evaluations (0.24 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/validator_test.go

    				celMatcher: matcher,
    				validationFilter: &fakeCelFilter{
    					evaluations: tc.evaluations,
    					throwError:  tc.throwError,
    				},
    				messageFilter: &fakeCelFilter{
    					evaluations: tc.messageEvaluations,
    					throwError:  tc.throwError,
    				},
    				auditAnnotationFilter: &fakeCelFilter{
    					evaluations: tc.auditEvaluations,
    					throwError:  tc.throwError,
    				},
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions/matcher_test.go

    type fakeCelFilter struct {
    	evaluations []cel.EvaluationResult
    	throwError  bool
    }
    
    func (f *fakeCelFilter) ForInput(context.Context, *admission.VersionedAttributes, *admissionv1.AdmissionRequest, cel.OptionalVariableBindings, *api.Namespace, int64) ([]cel.EvaluationResult, int64, error) {
    	if f.throwError {
    		return nil, 0, errors.New("test error")
    	}
    	return f.evaluations, 0, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 15 00:53:08 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/authentication/cel/mapper.go

    }
    
    func (m *mapper) eval(ctx context.Context, input map[string]interface{}) ([]EvaluationResult, error) {
    	evaluations := make([]EvaluationResult, len(m.compilationResults))
    
    	for i, compilationResult := range m.compilationResults {
    		var evaluation = &evaluations[i]
    		evaluation.ExpressionAccessor = compilationResult.ExpressionAccessor
    
    		evalResult, _, err := compilationResult.Program.ContextEval(ctx, input)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 20:16:09 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions/interface.go

    )
    
    type MatchResult struct {
    	Matches             bool
    	Error               error
    	FailedConditionName string
    }
    
    // Matcher contains logic for converting Evaluations to bool of matches or does not match
    type Matcher interface {
    	// Match is used to take cel evaluations and convert into decisions
    	Match(ctx context.Context, versionedAttr *admission.VersionedAttributes, versionedParams runtime.Object, authz authorizer.Authorizer) MatchResult
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 28 19:30:04 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. test/ken/shift.go

    	n := index(t1,t2,t3);
    	if u != uans[n] {
    		print("utest ", t1,t2,t3,pass,
    			" is ", u, " sb ", uans[n], "\n");
    	}
    }
    
    func
    main() {
    	var i int;
    	var u,c uint;
    
    	/*
    	 * test constant evaluations
    	 */
    	pass = "con";	// constant part
    
    	testi( int(1234) <<    0, 0,0,0);
    	testi( int(1234) >>    0, 0,0,1);
    	testi( int(1234) <<    5, 0,1,0);
    	testi( int(1234) >>    5, 0,1,1);
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 2.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/metrics_test.go

    			}
    		})
    	}
    }
    
    type fakeAuthorizerMetrics struct {
    	totalCode string
    
    	latency     float64
    	latencyCode string
    
    	evaluations       int
    	evaluationsResult string
    
    	duration       float64
    	durationResult string
    
    	failOpen       int
    	failOpenResult string
    
    	cel.NoopMatcherMetrics
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/filter.go

    	for i, compilationResult := range f.compilationResults {
    		var evaluation = &evaluations[i]
    		if compilationResult.ExpressionAccessor == nil { // in case of placeholder
    			continue
    		}
    		evaluation.ExpressionAccessor = compilationResult.ExpressionAccessor
    		if compilationResult.Error != nil {
    			evaluation.Error = &cel.Error{
    				Type:   cel.ErrorTypeInvalid,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 24 14:46:11 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go

    	evaluations1 := atomic.Int64{}
    	evaluations2 := atomic.Int64{}
    
    	compiler.RegisterDefinition(&policy1, func(ctx context.Context, matchedResource schema.GroupVersionResource, versionedAttr *admission.VersionedAttributes, versionedParams runtime.Object, namespace *v1.Namespace, runtimeCELCostBudget int64, authz authorizer.Authorizer) validating.ValidateResult {
    		evaluations1.Add(1)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 01:39:01 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/interface.go

    	AuditAnnotations []PolicyAuditAnnotation
    }
    
    // Validator is contains logic for converting ValidationEvaluation to PolicyDecisions
    type Validator interface {
    	// Validate is used to take cel evaluations and convert into decisions
    	// runtimeCELCostBudget was added for testing purpose only. Callers should always use const RuntimeCELCostBudget from k8s.io/apiserver/pkg/apis/cel/config.go as input.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 17:47:18 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access.go

    	group           singleflight.Group
    	liveTTL         time.Duration
    	// updatedQuotas holds a cache of quotas that we've updated.  This is used to pull the "really latest" during back to
    	// back quota evaluations that touch the same quota doc.  This only works because we can compare etcd resourceVersions
    	// for the same resource as integers.  Before this change: 22 updates with 12 conflicts.  after this change: 15 updates with 0 conflicts
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 13:54:56 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top