Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for AddReactor (0.11 sec)

  1. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    			DevicePath: "fake/path",
    		})
    	}
    	fakeClient.AddReactor("get", "nodes",
    		func(action core.Action) (bool, runtime.Object, error) {
    			return true, &v1.Node{
    				ObjectMeta: metav1.ObjectMeta{Name: string(nodeName)},
    				Status: v1.NodeStatus{
    					VolumesAttached: attachedVolumes,
    				},
    			}, nil
    		},
    	)
    
    	fakeClient.AddReactor("*", "*", func(action core.Action) (bool, runtime.Object, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  2. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator_test.go

    	Other       string = "other"
    )
    
    func pluginPVOmittingClient(dswp *desiredStateOfWorldPopulator) {
    	fakeClient := &fake.Clientset{}
    	fakeClient.AddReactor("get", "persistentvolumeclaims", func(action core.Action) (bool, runtime.Object, error) {
    		return false, nil, nil
    	})
    	fakeClient.AddReactor("get", "persistentvolumes", func(action core.Action) (bool, runtime.Object, error) {
    		return false, nil, nil
    	})
    	dswp.kubeClient = fakeClient
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  3. pkg/controller/disruption/disruption_test.go

    	replicas := int32(10)
    	pods := int32(4)
    	maxUnavailable := int32(5)
    
    	_, ctx := ktesting.NewTestContext(t)
    	dc, ps := newFakeDisruptionController(ctx)
    
    	dc.scaleClient.AddReactor("get", "customresources", func(action core.Action) (handled bool, ret runtime.Object, err error) {
    		obj := &autoscalingapi.Scale{
    			ObjectMeta: metav1.ObjectMeta{
    				Namespace: metav1.NamespaceDefault,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 50K bytes
    - Viewed (0)
  4. pkg/kubelet/status/status_manager_test.go

    	}
    }
    
    func TestSyncPodIgnoresNotFound(t *testing.T) {
    	client := fake.Clientset{}
    	syncer := newTestManager(&client)
    	client.AddReactor("get", "pods", func(action core.Action) (bool, runtime.Object, error) {
    		return true, nil, errors.NewNotFound(api.Resource("pods"), "test-pod")
    	})
    	syncer.SetPodStatus(getTestPod(), getRandomPodStatus())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  5. pkg/controller/replicaset/replica_set_test.go

    func TestControllerUpdateStatusWithFailure(t *testing.T) {
    	rs := newReplicaSet(1, map[string]string{"foo": "bar"})
    	fakeClient := &fake.Clientset{}
    	fakeClient.AddReactor("get", "replicasets", func(action core.Action) (bool, runtime.Object, error) { return true, rs, nil })
    	fakeClient.AddReactor("*", "*", func(action core.Action) (bool, runtime.Object, error) {
    		return true, &apps.ReplicaSet{}, fmt.Errorf("fake error")
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
Back to top