test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrainChan

func DrainChan(requests <-chan reconcile.Request, timeout time.Duration)

DrainChan drains the request chan time for drainTimeout

func GenerateGetNameFunc

func GenerateGetNameFunc(namePrefix string) func() string

func PurgeAllConfigMaps

func PurgeAllConfigMaps(cli client.Client, opts ...client.ListOption) error

func PurgeAllNodes

func PurgeAllNodes(cli client.Client, opts ...client.ListOption) error

func PurgeAllPods

func PurgeAllPods(cli client.Client, opts ...client.ListOption) error

func PurgeAllSecrets

func PurgeAllSecrets(cli client.Client, opts ...client.ListOption) error

func SetupLogger

func SetupLogger()

func StartTestEnv

func StartTestEnv() (env *envtest.Environment, cfg *rest.Config, cli client.Client, err error)

func StartTestEnvWithCRD

func StartTestEnvWithCRD(CRDDirectoryPaths []string) (env *envtest.Environment, cfg *rest.Config, cli client.Client, err error)

func StartTestEnvWithCRDAndScheme

func StartTestEnvWithCRDAndScheme(CRDDirectoryPaths []string, scheme *runtime.Scheme) (env *envtest.Environment, cfg *rest.Config, cli client.Client, err error)

func WrapReconcile

func WrapReconcile(inner reconcile.Reconciler) (reconcile.Reconciler, chan reconcile.Request)

WrapReconcile returns a reconcile.Reconcile implementation that delegates to inner and writes the request to requests after Reconcile is finished.

func WrapReconcileFunc

func WrapReconcileFunc(inner reconcile.Func) (reconcile.Func, chan reconcile.Request)

WrapReconcileFunc returns a reconcile.Func implementation that delegates to inner and writes the request to requests after Reconcile is finished.

Types

This section is empty.

Jump to

Keyboard shortcuts

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