Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for NewStore (0.07 sec)

  1. pkg/controller/controller_utils.go

    		key: e.key,
    	}
    }
    
    // NewControllerExpectations returns a store for ControllerExpectations.
    func NewControllerExpectations() *ControllerExpectations {
    	return &ControllerExpectations{cache.NewStore(ExpKeyFunc)}
    }
    
    // UIDSetKeyFunc to parse out the key from a UIDSet.
    var UIDSetKeyFunc = func(obj interface{}) (string, error) {
    	if u, ok := obj.(*UIDSet); ok {
    		return u.key, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 12 15:34:44 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  2. pkg/controller/endpoint/endpoints_controller_test.go

    				Spec: v1.ServiceSpec{
    					ClusterIP: "3000::1",
    				},
    			},
    			expectError: true,
    		},
    	}
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			podStore := cache.NewStore(cache.DeletionHandlingMetaNamespaceKeyFunc)
    			ns := "test"
    			addPods(podStore, ns, 1, 1, 0, tc.ipFamilies)
    			pods := podStore.List()
    			if len(pods) != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  3. pkg/controller/daemon/daemon_controller_test.go

    		}
    		expectStableQueueLength(expected)
    	}
    
    	fakeRecorder := record.NewFakeRecorder(100)
    	dsc.eventRecorder = fakeRecorder
    
    	fakePodControl := newFakePodControl()
    	fakePodControl.podStore = cache.NewStore(cache.DeletionHandlingMetaNamespaceKeyFunc) // fake store that we don't use
    	fakePodControl.expectations = controller.NewControllerExpectations()                 // fake expectations that we don't use
    	dsc.podControl = fakePodControl
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
Back to top