Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for UpdateFunc (0.29 sec)

  1. pkg/registry/admissionregistration/validatingadmissionpolicybinding/storage/storage_test.go

    			test.TestUpdate(
    				// valid
    				b,
    				// updateFunc
    				func(obj runtime.Object) runtime.Object {
    					object := obj.(*admissionregistration.ValidatingAdmissionPolicyBinding)
    					object.Labels = map[string]string{"c": "d"}
    					return object
    				},
    				// invalid updateFunc
    				func(obj runtime.Object) runtime.Object {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 20 16:30:09 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  2. pkg/test/framework/components/echo/kube/pod_controller.go

    	_, informer := cache.NewInformer(podListWatch, &corev1.Pod{}, 0, controllers.EventHandler[*corev1.Pod]{
    		AddFunc: func(pod *corev1.Pod) {
    			q.Push(func() error {
    				return handlers.added(pod)
    			})
    		},
    		UpdateFunc: func(old, cur *corev1.Pod) {
    			q.Push(func() error {
    				if old.GetResourceVersion() != cur.GetResourceVersion() {
    					return handlers.updated(cur)
    				}
    				return nil
    			})
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 09 02:22:47 UTC 2023
    - 2.6K bytes
    - Viewed (1)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. pkg/registry/resource/resourceclaimparameters/storage/storage_test.go

    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store)
    	test.TestUpdate(
    		// valid
    		validNewResourceClaimParameters("foo"),
    		// updateFunc
    		func(obj runtime.Object) runtime.Object {
    			object := obj.(*resource.ResourceClaimParameters)
    			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 15:15:31 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. pkg/registry/resource/resourceslice/storage/storage_test.go

    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store).ClusterScope()
    	test.TestUpdate(
    		// valid
    		validNewResourceSlice("foo"),
    		// updateFunc
    		func(obj runtime.Object) runtime.Object {
    			object := obj.(*resource.ResourceSlice)
    			object.Labels = map[string]string{"foo": "bar"}
    			return object
    		},
    		// invalid update
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. pkg/registry/storage/csidriver/storage/storage_test.go

    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store).ClusterScope()
    	notPodInfoOnMount := false
    
    	test.TestUpdate(
    		// valid
    		validNewCSIDriver("foo"),
    		// updateFunc
    		func(obj runtime.Object) runtime.Object {
    			object := obj.(*storageapi.CSIDriver)
    			object.Labels = map[string]string{"a": "b"}
    			return object
    		},
    		//invalid update
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 15:49:55 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top