package testing
import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/testing"
Index ¶
- func SetupPlugin( ctx context.Context, tb testing.TB, pf frameworkruntime.PluginFactory, config runtime.Object, sharedLister framework.SharedLister, ) framework.Plugin
- func SetupPluginWithInformers( ctx context.Context, tb testing.TB, pf frameworkruntime.PluginFactory, config runtime.Object, sharedLister framework.SharedLister, objs []runtime.Object, ) framework.Plugin
Functions ¶
func SetupPlugin ¶
func SetupPlugin( ctx context.Context, tb testing.TB, pf frameworkruntime.PluginFactory, config runtime.Object, sharedLister framework.SharedLister, ) framework.Plugin
SetupPlugin creates a plugin using a framework handle that includes the provided sharedLister.
func SetupPluginWithInformers ¶
func SetupPluginWithInformers( ctx context.Context, tb testing.TB, pf frameworkruntime.PluginFactory, config runtime.Object, sharedLister framework.SharedLister, objs []runtime.Object, ) framework.Plugin
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.
Source Files ¶
testing.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 3 hours ago –
Tools for package owners.