Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for withAudit (0.22 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/config_test.go

    func TestAuthenticationAuditAnnotationsDefaultChain(t *testing.T) {
    	authn := authenticator.RequestFunc(func(req *http.Request) (*authenticator.Response, bool, error) {
    		// confirm that we can set an audit annotation in a handler before WithAudit
    		audit.AddAuditAnnotation(req.Context(), "pandas", "are awesome")
    
    		return &authenticator.Response{User: &user.DefaultInfo{}}, true, nil
    	})
    	backend := &testBackend{}
    	c := &Config{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go

    			scope.err(err, w, req)
    			return
    		}
    		options.TypeMeta.SetGroupVersionKind(metav1.SchemeGroupVersion.WithKind("PatchOptions"))
    
    		admit = admission.WithAudit(admit)
    
    		audit.LogRequestPatch(req.Context(), patchBytes)
    		span.AddEvent("Recorded the audit event")
    
    		baseContentType := runtime.ContentTypeJSON
    		if patchType == types.ApplyPatchType {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/config.go

    	handler = filterlatency.TrackStarted(handler, c.TracerProvider, "impersonation")
    
    	handler = filterlatency.TrackCompleted(handler)
    	handler = genericapifilters.WithAudit(handler, c.AuditBackend, c.AuditPolicyRuleEvaluator, c.LongRunningFunc)
    	handler = filterlatency.TrackStarted(handler, c.TracerProvider, "audit")
    
    	failedHandler := genericapifilters.Unauthorized(c.Serializer)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 47.7K bytes
    - Viewed (0)
  4. manifests/addons/dashboards/lib/panels.libsonnet

          + timeSeries.standardOptions.withUnit('short')
          + timeSeries.standardOptions.withDecimals(0),
    
        seconds(title, targets, desc=''):
          self.base(title, targets, desc)
          + timeSeries.standardOptions.withUnit('s'),
    
        connections(title, targets, desc=''):
          self.base(title, targets, desc)
          + timeSeries.standardOptions.withUnit('cps'),
    
        dns(title, targets, desc=''):
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 20:46:28 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. pilot/pkg/xds/monitoring.go

    		// 4M default limit for gRPC, 10M config will start to strain system,
    		// 40M is likely upper-bound on config sizes supported.
    		[]float64{1, 10000, 1000000, 4000000, 10000000, 40000000},
    		monitoring.WithUnit(monitoring.Bytes),
    	)
    )
    
    func recordXDSClients(version string, delta float64) {
    	xdsClientTrackerMutex.Lock()
    	defer xdsClientTrackerMutex.Unlock()
    	xdsClientTracker[version] += delta
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top