Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 25 for withAudit (0.19 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/create.go

    			_, name, _ = scope.Namer.ObjectName(obj)
    		}
    		if len(namespace) == 0 && scope.Resource == namespaceGVR {
    			namespace = name
    		}
    		ctx = request.WithNamespace(ctx, namespace)
    
    		admit = admission.WithAudit(admit)
    		audit.LogRequestObject(req.Context(), obj, objGV, scope.Resource, scope.Subresource, scope.Serializer)
    
    		userInfo, _ := request.UserFrom(ctx)
    
    		if objectMeta, err := meta.Accessor(obj); err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:19:46 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  2. 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)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest.go

    		}
    
    		namespace, name, err := scope.Namer.Name(req)
    		if err != nil {
    			scope.err(err, w, req)
    			return
    		}
    		ctx := req.Context()
    		ctx = request.WithNamespace(ctx, namespace)
    		admit = admission.WithAudit(admit)
    
    		opts, subpath, subpathKey := connecter.NewConnectOptions()
    		if err := getRequestOptions(req, scope, opts, subpath, subpathKey, isSubresource); err != nil {
    			err = errors.NewBadRequest(err.Error())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 17K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. pkg/monitoring/options.go

    type options struct {
    	enabledCondition func() bool
    	unit             Unit
    	name             string
    	description      string
    }
    
    // WithUnit provides configuration options for a new Metric, providing unit of measure
    // information for a new Metric.
    func WithUnit(unit Unit) Options {
    	return func(opts *options) {
    		opts.unit = unit
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go

    		return requestInfo.Verb == "watch" || requestInfo.Verb == "proxy"
    	}
    	fakeRuleEvaluator := auditpolicy.NewFakePolicyRuleEvaluator(auditinternal.LevelRequestResponse, nil)
    	handler := genericapifilters.WithAudit(mux, auditSink, fakeRuleEvaluator, longRunningCheck)
    	handler = genericapifilters.WithRequestDeadline(handler, auditSink, fakeRuleEvaluator, longRunningCheck, codecs, 60*time.Second)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:15:22 UTC 2023
    - 158.7K bytes
    - Viewed (0)
  9. pkg/monitoring/example_gauge_test.go

    package monitoring_test
    
    import "istio.io/istio/pkg/monitoring"
    
    var pushLatency = monitoring.NewGauge(
    	"push_latency_seconds",
    	"Duration, measured in seconds, of the last push",
    	monitoring.WithUnit(monitoring.Seconds),
    )
    
    func ExampleNewGauge() {
    	// only the last recorded value (99.2) will be exported for this gauge
    	pushLatency.Record(77.3)
    	pushLatency.Record(22.8)
    	pushLatency.Record(99.2)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 994 bytes
    - Viewed (0)
  10. pkg/monitoring/example_distribution_test.go

    var (
    	method = monitoring.CreateLabel("method")
    
    	receivedBytes = monitoring.NewDistribution(
    		"received_bytes_total",
    		"Distribution of received bytes by method",
    		[]float64{10, 100, 1000, 10000},
    		monitoring.WithUnit(monitoring.Bytes),
    	)
    )
    
    func ExampleNewDistribution() {
    	receivedBytes.With(method.Value("/projects/1")).Record(458)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 995 bytes
    - Viewed (0)
Back to top