Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for WithWarningRecorder (0.32 sec)

  1. pkg/registry/batch/job/storage/storage_test.go

    			defer server.Terminate(t)
    			defer storage.Job.Store.DestroyFunc()
    			dc := dummyRecorder{agent: "", text: ""}
    			ctx = genericapirequest.WithRequestInfo(ctx, test.requestInfo)
    			ctxWithRecorder := warning.WithWarningRecorder(ctx, &dc)
    			// Create the object
    			if err := storage.Job.Storage.Create(ctxWithRecorder, key, job, nil, 0, false); err != nil {
    				t.Fatalf("unexpected error: %v", err)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. plugin/pkg/admission/security/podsecurity/admission_test.go

    		admission.Update, &metav1.UpdateOptions{}, false,
    		&user.DefaultInfo{Name: "myuser"},
    	)
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		dc := dummyRecorder{agent: "", text: ""}
    		ctxWithRecorder := warning.WithWarningRecorder(ctx, &dc)
    		if err := p.Validate(ctxWithRecorder, attrs, nil); err != nil {
    			b.Fatal(err)
    		}
    		// should either be a single aggregated warning, or a unique warning per pod
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 15 01:29:47 UTC 2022
    - 10.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/config.go

    	handler = genericfilters.WithCORS(handler, c.CorsAllowedOriginList, nil, nil, nil, "true")
    
    	// WithWarningRecorder must be wrapped by the timeout handler
    	// to make the addition of warning headers threadsafe
    	handler = genericapifilters.WithWarningRecorder(handler)
    
    	// WithTimeoutForNonLongRunningRequests will call the rest of the request handling in a go-routine with the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 47.7K bytes
    - Viewed (0)
Back to top