Documentation ¶
Index ¶
- func NewClients(t *testing.T, config *rest.Config) (kubernetes.Interface, cmclient.Interface, cminformers.SharedInformerFactory, ...)
- func NewEventRecorder(t *testing.T, scheme *runtime.Scheme) record.EventRecorder
- func WaitForOpenAPIResourcesToBeLoaded(t *testing.T, ctx context.Context, config *rest.Config, ...)
- type RunControlPlaneOption
- type StopFunc
- func RunControlPlane(t *testing.T, ctx context.Context, optionFunctions ...RunControlPlaneOption) (*rest.Config, StopFunc)
- func StartInformersAndController(t *testing.T, cmFactory cminformers.SharedInformerFactory, ...) StopFunc
- func StartInformersAndControllers(t *testing.T, cmFactory cminformers.SharedInformerFactory, ...) StopFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClients ¶
func NewClients(t *testing.T, config *rest.Config) (kubernetes.Interface, cmclient.Interface, cminformers.SharedInformerFactory, *runtime.Scheme)
func NewEventRecorder ¶
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 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
Click to show internal directories.
Click to hide internal directories.