- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for RecordAuthorizationMatchConditionExclusion (0.55 sec)
-
staging/src/k8s.io/apiserver/pkg/authorization/cel/metrics.go
RecordAuthorizationMatchConditionEvaluationFailure(ctx context.Context, authorizerType, authorizerName string) // RecordAuthorizationMatchConditionExclusion records increments when at least one matchCondition evaluates to false and excludes an Authorize() call to the given authorizer RecordAuthorizationMatchConditionExclusion(ctx context.Context, authorizerType, authorizerName string) } type NoopMatcherMetrics struct{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 22:41:27 UTC 2024 - 4.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authorization/cel/matcher.go
continue } // If at least one matchCondition successfully evaluates to FALSE, // return early if !match { metrics.RecordAuthorizationMatchConditionExclusion(ctx, c.AuthorizerType, c.AuthorizerName) return false, nil } } // if there is any error, return if len(evalErrors) > 0 { return false, utilerrors.NewAggregate(evalErrors) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 22:41:27 UTC 2024 - 2.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authorization/cel/metrics_test.go
t.Run(tt.desc, func(t *testing.T) { ResetMetricsForTest() m := NewMatcherMetrics() m.RecordAuthorizationMatchConditionEvaluationFailure(context.Background(), tt.authztype, tt.name) m.RecordAuthorizationMatchConditionExclusion(context.Background(), tt.authztype, tt.name) m.RecordAuthorizationMatchConditionEvaluation(context.Background(), tt.authztype, tt.name, time.Duration(1*time.Second))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 22:41:27 UTC 2024 - 4K bytes - Viewed (0)