- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for makeClient (0.28 sec)
-
pkg/controller/ttl/ttl_controller_test.go
}, } for i, testCase := range testCases { fakeClient := &fake.Clientset{} ttlController := &Controller{ kubeClient: fakeClient, } err := ttlController.patchNodeWithAnnotation(context.TODO(), testCase.node, v1.ObjectTTLAnnotationKey, testCase.ttlSeconds) if err != nil { t.Errorf("%d: unexpected error: %v", i, err) continue } actions := fakeClient.Actions()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 7.1K bytes - Viewed (0) -
pkg/controller/volume/attachdetach/populator/desired_state_of_world_populator_test.go
) func TestFindAndAddActivePods_FindAndRemoveDeletedPods(t *testing.T) { fakeVolumePluginMgr, _ := volumetesting.GetTestVolumePluginMgr(t) fakeClient := &fake.Clientset{} fakeInformerFactory := informers.NewSharedInformerFactory(fakeClient, controller.NoResyncPeriodFunc()) fakePodInformer := fakeInformerFactory.Core().V1().Pods() fakesDSW := cache.NewDesiredStateOfWorld(fakeVolumePluginMgr)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 10:42:15 UTC 2024 - 7.3K bytes - Viewed (0) -
pkg/controller/volume/attachdetach/metrics/metrics_test.go
"k8s.io/kubernetes/pkg/volume/util/types" ) func TestVolumesInUseMetricCollection(t *testing.T) { fakeVolumePluginMgr, _ := volumetesting.GetTestVolumePluginMgr(t) fakeClient := &fake.Clientset{} fakeInformerFactory := informers.NewSharedInformerFactory(fakeClient, controller.NoResyncPeriodFunc()) fakePodInformer := fakeInformerFactory.Core().V1().Pods() pod := &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "metric-test-pod",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 10:42:15 UTC 2024 - 6.1K bytes - Viewed (0) -
pkg/controller/volume/ephemeral/controller_test.go
return pvcs[i].Namespace < pvcs[j].Namespace || pvcs[i].Name < pvcs[j].Name }) return pvcs } func createTestClient(objects ...runtime.Object) *fake.Clientset { fakeClient := fake.NewSimpleClientset(objects...) return fakeClient } // Metrics helpers type expectedMetrics struct { numCreated int numFailures int } func expectMetrics(t *testing.T, em expectedMetrics) { t.Helper()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 8.5K bytes - Viewed (0)