framework

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventRecorder

func NewEventRecorder(t *testing.T) record.EventRecorder

func WaitForOpenAPIResourcesToBeLoaded added in v1.0.0

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

Types

type RunControlPlaneOption added in v1.7.0

type RunControlPlaneOption func(*controlPlaneOptions)

func WithCRDDirectory added in v1.7.0

func WithCRDDirectory(directory string) RunControlPlaneOption

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

func WithWebhookConversionHandler added in v1.7.0

func WithWebhookConversionHandler(handler handlers.ConversionHook) RunControlPlaneOption

WithWebhookConversionHandler allows the webhook handler for the `/convert` endpoint to be overridden in tests.

type StopFunc

type StopFunc func()

func RunControlPlane

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

Jump to

Keyboard shortcuts

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