Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestStorageCodec (0.16 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/apitesting/codec.go

    	}
    	return codecs.LegacyCodec(gvs...)
    }
    
    // TestStorageCodec returns the codec for the API version to test against used in storage, as set by the
    // KUBE_TEST_API_STORAGE_TYPE env var.
    func TestStorageCodec(codecs runtimeserializer.CodecFactory, gvs ...schema.GroupVersion) runtime.Codec {
    	if len(testStorageCodecMediaType) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 01 19:31:12 UTC 2018
    - 3.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease_test.go

    	t.Cleanup(func() { server.Terminate(t) })
    
    	newFunc := func() runtime.Object { return &corev1.Endpoints{} }
    	newListFunc := func() runtime.Object { return &corev1.EndpointsList{} }
    	sc.Codec = apitesting.TestStorageCodec(codecs, corev1.SchemeGroupVersion)
    
    	s, dFunc, err := factory.Create(*sc.ForResource(schema.GroupResource{Resource: "endpoints"}), newFunc, newListFunc, "")
    	if err != nil {
    		t.Fatalf("Error creating storage: %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top