Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for makeClient (0.12 sec)

  1. pkg/controller/podautoscaler/horizontal_test.go

    	}
    
    	if tc.resource == nil {
    		tc.resource = &fakeResource{
    			name:       "test-rc",
    			apiVersion: "v1",
    			kind:       "ReplicationController",
    		}
    	}
    	tc.Unlock()
    
    	fakeClient := &fake.Clientset{}
    	fakeClient.AddReactor("list", "horizontalpodautoscalers", func(action core.Action) (handled bool, ret runtime.Object, err error) {
    		tc.Lock()
    		defer tc.Unlock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 199.3K bytes
    - Viewed (0)
  2. pkg/controller/daemon/daemon_controller_test.go

    			ds := newDaemonSet("foo")
    			fakeClient := &fake.Clientset{}
    			getCalled := 0
    			fakeClient.AddReactor("get", "daemonsets", func(action core.Action) (bool, runtime.Object, error) {
    				getCalled += 1
    				if getCalled <= tt.getErrorNum {
    					return true, nil, getError
    				}
    				return true, ds, nil
    			})
    			updateCalled := 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  3. pkg/controller/job/job_controller_test.go

    		t.Run(name, func(t *testing.T) {
    			t.Cleanup(setDurationDuringTest(&DefaultJobApiBackOff, fastJobApiBackoff))
    			fakeClient := clocktesting.NewFakeClock(time.Now())
    			manager, sharedInformerFactory := newControllerFromClientWithClock(ctx, t, clientset, controller.NoResyncPeriodFunc, fakeClient)
    			fakePodControl := controller.FakePodControl{}
    			manager.podControl = &fakePodControl
    			manager.podStoreSynced = alwaysReady
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
Back to top