- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SetupPluginWithInformers (0.4 sec)
-
pkg/scheduler/framework/plugins/testing/testing.go
) // SetupPluginWithInformers creates a plugin using a framework handle that includes // the provided sharedLister and a SharedInformerFactory with the provided objects. // The function also creates an empty namespace (since most tests creates pods with // empty namespace), and start informer factory. func SetupPluginWithInformers( ctx context.Context, tb testing.TB,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 20 09:49:54 UTC 2023 - 2.5K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/interpodaffinity/plugin_test.go
logger, ctx := ktesting.NewTestContext(t) ctx, cancel := context.WithCancel(ctx) defer cancel() snapshot := cache.NewSnapshot(nil, nil) pl := plugintesting.SetupPluginWithInformers(ctx, t, New, &config.InterPodAffinityArgs{}, snapshot, namespaces) p := pl.(*InterPodAffinity) actualHint, err := p.isSchedulableAfterPodChange(logger, tc.pod, tc.oldPod, tc.newPod) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 12 03:08:44 UTC 2024 - 9.7K bytes - Viewed (0)