Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 150 for TestOptions (0.19 sec)

  1. staging/src/k8s.io/apiserver/pkg/registry/generic/options.go

    }
    
    // Implement RESTOptionsGetter so that RESTOptions can directly be used when available (i.e. tests)
    func (opts RESTOptions) GetRESTOptions(schema.GroupResource) (RESTOptions, error) {
    	return opts, nil
    }
    
    type RESTOptionsGetter interface {
    	GetRESTOptions(resource schema.GroupResource) (RESTOptions, error)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 01 20:54:26 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/test/integration/fixtures/server.go

    	restOptions, err := RESTOptionsGetter.GetRESTOptions(schema.GroupResource{Group: "hopefully-ignored-group", Resource: "hopefully-ignored-resources"})
    	if err != nil {
    		return nil, nil, nil, nil, "", err
    	}
    	tlsInfo := transport.TLSInfo{
    		CertFile:      restOptions.StorageConfig.Transport.CertFile,
    		KeyFile:       restOptions.StorageConfig.Transport.KeyFile,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. pkg/registry/core/secret/storage/storage_test.go

    	etcdStorage, server := registrytest.NewEtcdStorage(t, "")
    	restOptions := generic.RESTOptions{
    		StorageConfig:           etcdStorage,
    		Decorator:               generic.UndecoratedStorage,
    		DeleteCollectionWorkers: 1,
    		ResourcePrefix:          "secrets",
    	}
    	rest, err := NewREST(restOptions)
    	if err != nil {
    		t.Fatalf("unexpected error from REST storage: %v", err)
    	}
    	return rest, server
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 12 20:55:35 UTC 2019
    - 3.8K bytes
    - Viewed (0)
  4. pkg/registry/resource/resourceclassparameters/storage/storage_test.go

    	etcdStorage, server := registrytest.NewEtcdStorage(t, resource.GroupName)
    	restOptions := generic.RESTOptions{
    		StorageConfig:           etcdStorage,
    		Decorator:               generic.UndecoratedStorage,
    		DeleteCollectionWorkers: 1,
    		ResourcePrefix:          "resourceclassparameters",
    	}
    	resourceClassStorage, err := NewREST(restOptions)
    	if err != nil {
    		t.Fatalf("unexpected error from REST storage: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:21:16 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. pkg/controlplane/apiserver/config_test.go

    	}
    
    	restOptions, err := genericConfig.RESTOptionsGetter.GetRESTOptions(schema.GroupResource{Group: "", Resource: ""})
    	if err != nil {
    		t.Fatal(err)
    	}
    	if restOptions.StorageConfig.StorageObjectCountTracker != genericConfig.StorageObjectCountTracker {
    		t.Errorf("There are different StorageObjectCountTracker in restOptions and serverConfig")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 12:14:06 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. pkg/registry/apps/daemonset/storage/storage_test.go

    	etcdStorage, server := registrytest.NewEtcdStorage(t, apps.GroupName)
    	restOptions := generic.RESTOptions{
    		StorageConfig:           etcdStorage,
    		Decorator:               generic.UndecoratedStorage,
    		DeleteCollectionWorkers: 1,
    		ResourcePrefix:          "daemonsets",
    	}
    	daemonSetStorage, statusStorage, err := NewREST(restOptions)
    	if err != nil {
    		t.Fatalf("unexpected error from REST storage: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 12 20:55:35 UTC 2019
    - 5.3K bytes
    - Viewed (0)
  7. pkg/registry/admissionregistration/validatingadmissionpolicy/storage/storage_test.go

    	restOptions := generic.RESTOptions{
    		StorageConfig:           etcdStorage,
    		Decorator:               generic.UndecoratedStorage,
    		DeleteCollectionWorkers: 1,
    		ResourcePrefix:          "validatingadmissionpolicies"}
    	storage, _, err := NewREST(restOptions, authorizer, resourceResolver)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 23:43:34 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  8. pkg/registry/core/event/storage/storage_test.go

    	etcdStorage, server := registrytest.NewEtcdStorage(t, "")
    	restOptions := generic.RESTOptions{
    		StorageConfig:           etcdStorage,
    		Decorator:               generic.UndecoratedStorage,
    		DeleteCollectionWorkers: 1,
    		ResourcePrefix:          "events",
    	}
    	rest, err := NewREST(restOptions, testTTL)
    	if err != nil {
    		t.Fatalf("unexpected error from REST storage: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 01 14:50:28 UTC 2020
    - 3.4K bytes
    - Viewed (0)
  9. pkg/registry/storage/csistoragecapacity/storage/storage_test.go

    	restOptions := generic.RESTOptions{
    		StorageConfig:           etcdStorage,
    		Decorator:               generic.UndecoratedStorage,
    		DeleteCollectionWorkers: 1,
    		ResourcePrefix:          "csistoragecapacities",
    	}
    	csiStorageCapacityStorage, err := NewStorage(restOptions)
    	if err != nil {
    		t.Fatalf("unexpected error from REST storage: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 03 19:54:14 UTC 2020
    - 4.4K bytes
    - Viewed (0)
  10. pkg/registry/storage/volumeattributesclass/storage/storage_test.go

    	restOptions := generic.RESTOptions{
    		StorageConfig:           etcdStorage,
    		Decorator:               generic.UndecoratedStorage,
    		DeleteCollectionWorkers: 1,
    		ResourcePrefix:          "volumeattributesclasses",
    	}
    	volumeAttributesClassStorage, err := NewREST(restOptions)
    	if err != nil {
    		t.Fatalf("unexpected error from REST storage: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:18:56 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top