Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidateAndCompileMatchConditions (2.58 sec)

  1. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation.go

    	allErrs = append(allErrs, errs...)
    
    	return allErrs
    }
    
    // ValidateAndCompileMatchConditions validates a given webhook's matchConditions.
    // This is exported for use in authz package.
    func ValidateAndCompileMatchConditions(matchConditions []api.WebhookMatchCondition) (*authorizationcel.CELMatcher, field.ErrorList) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook.go

    	// compile all expressions once in validation and save the results to be used for eval later
    	cm, fieldErr := apiservervalidation.ValidateAndCompileMatchConditions(matchConditions)
    	if err := fieldErr.ToAggregate(); err != nil {
    		return nil, err
    	}
    	if cm != nil {
    		cm.AuthorizerType = "Webhook"
    		cm.AuthorizerName = name
    		cm.Metrics = am
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_test.go

    		t.Run(tt.name, func(t *testing.T) {
    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.StructuredAuthorizationConfiguration, tt.featureEnabled)
    			celMatcher, errList := ValidateAndCompileMatchConditions(tt.matchConditions)
    			if len(tt.expectedErr) == 0 && len(tt.matchConditions) > 0 && len(errList) == 0 && celMatcher == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 87.2K bytes
    - Viewed (0)
Back to top