Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 131 for UpdateFunc (0.27 sec)

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

    	test := genericregistrytest.New(t, storage.Job.Store)
    	two := int32(2)
    	test.TestUpdate(
    		// valid
    		validNewJob(),
    		// updateFunc
    		func(obj runtime.Object) runtime.Object {
    			object := obj.(*batch.Job)
    			object.Spec.Parallelism = &two
    			return object
    		},
    		// invalid updateFunc
    		func(obj runtime.Object) runtime.Object {
    			object := obj.(*batch.Job)
    			object.Spec.Selector = &metav1.LabelSelector{}
    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. pkg/registry/networking/ingress/storage/storage_test.go

    	storage, _, server := newStorage(t)
    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store)
    	test.TestUpdate(
    		// valid
    		validIngress(),
    		// updateFunc
    		func(obj runtime.Object) runtime.Object {
    			object := obj.(*networking.Ingress)
    			object.Spec.Rules = toIngressRules(map[string]IngressRuleValues{
    				"bar.foo.com": {"/bar": defaultBackendName},
    			})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 15 09:01:21 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  3. pkg/controller/bootstrap/bootstrapsigner.go

    					return false
    				}
    			},
    			Handler: cache.ResourceEventHandlerFuncs{
    				AddFunc:    func(_ interface{}) { e.pokeConfigMapSync() },
    				UpdateFunc: func(_, _ interface{}) { e.pokeConfigMapSync() },
    			},
    		},
    		options.ConfigMapResync,
    	)
    
    	secrets.Informer().AddEventHandlerWithResyncPeriod(
    		cache.FilteringResourceEventHandler{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. pkg/registry/core/endpoint/storage/storage_test.go

    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store).AllowCreateOnUpdate()
    	test.TestUpdate(
    		// valid
    		validNewEndpoints(),
    		// updateFunc
    		func(obj runtime.Object) runtime.Object {
    			object := obj.(*api.Endpoints)
    			object.Subsets = []api.EndpointSubset{{
    				Addresses: []api.EndpointAddress{{IP: "1.2.3.4"}, {IP: "5.6.7.8"}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 12 20:55:35 UTC 2019
    - 3.8K bytes
    - Viewed (0)
  5. pkg/registry/storage/csistoragecapacity/storage/storage_test.go

    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store)
    
    	test.TestUpdate(
    		// valid
    		validNewCSIStorageCapacity("foo"),
    		// updateFunc
    		func(obj runtime.Object) runtime.Object {
    			object := obj.(*storageapi.CSIStorageCapacity)
    			object.Labels = map[string]string{"a": "b"}
    			return object
    		},
    		//invalid update
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 03 19:54:14 UTC 2020
    - 4.4K bytes
    - Viewed (0)
  6. pkg/registry/storage/volumeattributesclass/storage/storage_test.go

    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store).ClusterScope()
    	test.TestUpdate(
    		// valid
    		validNewVolumeAttributesClass("foo"),
    		// updateFunc
    		func(obj runtime.Object) runtime.Object {
    			object := obj.(*storageapi.VolumeAttributesClass)
    			object.Parameters = map[string]string{"foo": "bar"}
    			return object
    		},
    		// invalid update
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:18:56 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. pkg/registry/resource/resourceclaimtemplate/storage/storage_test.go

    	storage, server := newStorage(t)
    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store)
    	test.TestUpdate(
    		// valid
    		validNewClaimTemplate("foo"),
    		// updateFunc
    		func(obj runtime.Object) runtime.Object {
    			object := obj.(*resource.ResourceClaimTemplate)
    			object.Labels = map[string]string{"a": "b"}
    			return object
    		},
    		//invalid update
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 19:08:24 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  8. pkg/registry/core/limitrange/storage/storage_test.go

    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store).AllowCreateOnUpdate()
    	test.TestUpdate(
    		// valid
    		validNewLimitRange(),
    		// updateFunc
    		func(obj runtime.Object) runtime.Object {
    			object := obj.(*api.LimitRange)
    			object.Spec.Limits = []api.LimitRangeItem{
    				{
    					Type: api.LimitTypePod,
    					Max: api.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 13 16:56:29 UTC 2019
    - 4.6K bytes
    - Viewed (0)
  9. pkg/registry/core/secret/storage/storage_test.go

    	storage, server := newStorage(t)
    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store)
    	test.TestUpdate(
    		// valid
    		validNewSecret("foo"),
    		// updateFunc
    		func(obj runtime.Object) runtime.Object {
    			object := obj.(*api.Secret)
    			object.Data["othertest"] = []byte("otherdata")
    			return object
    		},
    	)
    }
    
    func TestDelete(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 12 20:55:35 UTC 2019
    - 3.8K bytes
    - Viewed (0)
  10. pkg/registry/resource/resourceclassparameters/storage/storage_test.go

    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store)
    	test.TestUpdate(
    		// valid
    		validNewResourceClassParameters("foo"),
    		// updateFunc
    		func(obj runtime.Object) runtime.Object {
    			object := obj.(*resource.ResourceClassParameters)
    			object.Labels = map[string]string{"foo": "bar"}
    			return object
    		},
    		// invalid update
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:21:16 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top