Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for NewMatcherMetrics (0.18 sec)

  1. staging/src/k8s.io/apiserver/pkg/authorization/cel/metrics_test.go

    			`,
    		},
    	}
    
    	for _, tt := range testCases {
    		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)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/authorization/cel/metrics.go

    }
    func (NoopMatcherMetrics) RecordAuthorizationMatchConditionExclusion(ctx context.Context, authorizerType, authorizerName string) {
    }
    
    type matcherMetrics struct{}
    
    func NewMatcherMetrics() MatcherMetrics {
    	RegisterMetrics()
    	return matcherMetrics{}
    }
    
    const (
    	namespace = "apiserver"
    	subsystem = "authorization"
    )
    
    var (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. pkg/kubeapiserver/authorizer/reload.go

    				decisionOnError,
    				configuredAuthorizer.Webhook.MatchConditions,
    				configuredAuthorizer.Name,
    				kubeapiserverWebhookMetrics{WebhookMetrics: webhookmetrics.NewWebhookMetrics(), MatcherMetrics: cel.NewMatcherMetrics()},
    			)
    			if err != nil {
    				return nil, nil, err
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1_test.go

    	return metrics.NoopAuthorizerMetrics{}
    }
    
    func celAuthorizerMetrics() metrics.AuthorizerMetrics {
    	return celAuthorizerMetricsType{
    		MatcherMetrics: celmetrics.NewMatcherMetrics(),
    	}
    }
    
    type celAuthorizerMetricsType struct {
    	metrics.NoopRequestMetrics
    	metrics.NoopWebhookMetrics
    	celmetrics.MatcherMetrics
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 43.2K bytes
    - Viewed (0)
Back to top