test

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AddVersionAnnotations added in v1.0.1

func AddVersionAnnotations(annotations map[string]string) map[string]string

func AfterSuite

func AfterSuite(ctx context.Context)

func ConfigureLoggers

func ConfigureLoggers(output io.Writer)

func EnsureReady

func EnsureReady(ctx context.Context, object client.Object, timeouts ...interface{})

func GetClient

func GetClient(ctx context.Context) client.Client

func GetEnvironment

func GetEnvironment(ctx context.Context) *envtest.Environment

func GetGVK

func GetManager

func GetManager(ctx context.Context) manager.Manager

func GetNamespacedName

func GetNamespacedName(object runtime.Object) types.NamespacedName

func GetRestConfig

func GetRestConfig(ctx context.Context) *rest.Config

func GetScheme

func GetScheme(ctx context.Context) *runtime.Scheme

func GetVersion added in v1.0.1

func GetVersion() string

func InitNamespace

func InitNamespace(ctxFactory func() context.Context) *corev1.Namespace

func InitSuite

func InitSuite() context.Context

func NewClient added in v1.0.1

func NewClient(ctx context.Context) client.Client

func NewContext

func NewContext() context.Context

func NewManager added in v1.0.1

func NewManager(ctx context.Context) manager.Manager

func NewName

func NewName(prefix string) string

func NewRestConfig

func NewRestConfig(ctx context.Context) *rest.Config

func ScaleUp

func ScaleUp(ctx context.Context, object client.Object)

func StartManager added in v1.0.1

func StartManager(ctx context.Context)

func WithClient

func WithClient(ctx context.Context, c client.Client) context.Context

func WithEnvironment

func WithEnvironment(ctx context.Context, env *envtest.Environment) context.Context

func WithManager

func WithManager(ctx context.Context, mgr manager.Manager) context.Context

func WithRestConfig

func WithRestConfig(ctx context.Context, cfg *rest.Config) context.Context

func WithScheme

func WithScheme(ctx context.Context, s *runtime.Scheme) context.Context

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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