Help us shape the future of Go! Take the 2026 Go Developer Survey

framework

package
v2.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventRecorder

func NewEventRecorder(t *testing.T, scheme *runtime.Scheme) record.EventRecorder

func WaitForOpenAPIResourcesToBeLoaded

func WaitForOpenAPIResourcesToBeLoaded(t *testing.T, ctx context.Context, config *rest.Config, gvk schema.GroupVersionKind)

Types

type RunControlPlaneOption

type RunControlPlaneOption func(*controlPlaneOptions)

func WithCRDDirectory

func WithCRDDirectory(directory string) RunControlPlaneOption

WithCRDDirectory allows alternative CRDs to be loaded into the test API server in tests.

type StopFunc

type StopFunc func()

func RunControlPlane

func RunControlPlane(t *testing.T, ctx context.Context, optionFunctions ...RunControlPlaneOption) (*rest.Config, StopFunc)

func StartInformersAndController

func StartInformersAndController(t *testing.T, cmFactory cminformers.SharedInformerFactory, c controllerpkg.Interface) StopFunc

func StartInformersAndControllers

func StartInformersAndControllers(t *testing.T, cmFactory cminformers.SharedInformerFactory, cs ...controllerpkg.Interface) StopFunc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL