Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for newStorage (0.16 sec)

  1. pkg/registry/core/service/portallocator/storage/storage_test.go

    	_, storage, _, _, destroyFunc := newStorage(t)
    	defer destroyFunc()
    	if err := storage.Allocate(31000); !strings.Contains(err.Error(), "cannot allocate resources of type servicenodeportallocations at this time") {
    		t.Fatal(err)
    	}
    }
    
    // TestAllocate fails to allocate ports out of the valid port range
    func TestAllocate(t *testing.T) {
    	_, storage, _, si, destroyFunc := newStorage(t)
    	defer destroyFunc()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. pkg/registry/core/pod/storage/eviction_test.go

    					pdbsCopy = append(pdbsCopy, pdbCopy)
    				}
    
    				testContext := genericapirequest.WithNamespace(genericapirequest.NewContext(), metav1.NamespaceDefault)
    				storage, _, statusStorage, server := newStorage(t)
    				defer server.Terminate(t)
    				defer storage.Store.DestroyFunc()
    
    				pod := validNewPod()
    				pod.Name = tc.podName
    				pod.Labels = map[string]string{"a": "true"}
    				pod.Spec.NodeName = "foo"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
  3. pkg/registry/core/service/storage/storage_test.go

    func TestGenericDelete(t *testing.T) {
    	storage, _, server := newStorage(t, []api.IPFamily{api.IPv4Protocol})
    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store).AllowCreateOnUpdate().ReturnDeletedObject()
    	test.TestDelete(validService())
    }
    
    func TestGenericGet(t *testing.T) {
    	storage, _, server := newStorage(t, []api.IPFamily{api.IPv4Protocol})
    	defer server.Terminate(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 440.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go

    			return nil, fmt.Errorf("the server could not properly serve the list kind")
    		}
    
    		storages[v.Name] = customresource.NewStorage(
    			resource.GroupResource(),
    			singularResource.GroupResource(),
    			kind,
    			listKind,
    			customresource.NewStrategy(
    				typer,
    				crd.Spec.Scope == apiextensionsv1.NamespaceScoped,
    				kind,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 52.9K bytes
    - Viewed (0)
Back to top