Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IncreaseMetricsCounter (0.31 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/x509metrics/server_cert_deprecations.go

    	// Use the req to derive and log information useful for troubleshooting the certificate issue
    	IncreaseMetricsCounter(req *http.Request)
    }
    
    // counterRaiser is a helper structure to include in certificate deprecation checkers.
    // It implements the IncreaseMetricsCounter() method so that, when included in the checker,
    // it does not have to be reimplemented.
    type counterRaiser struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 7.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/x509metrics/server_cert_deprecations_test.go

    			auditCtx := audit.AuditContextFrom(req.Context())
    			auditCtx.Event.Level = auditapi.LevelMetadata
    
    			_, err = client.Transport.RoundTrip(req)
    
    			if sanChecker.CheckRoundTripError(err) {
    				sanChecker.IncreaseMetricsCounter(req)
    
    				if len(auditCtx.Event.Annotations["missing-san.invalid-cert.kubernetes.io/"+req.URL.Hostname()]) == 0 {
    					t.Errorf("expected audit annotations, got %#v", auditCtx.Event.Annotations)
    				}
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 25.5K bytes
    - Viewed (0)
Back to top