testcontext

package
v0.0.0-...-c6ffef3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	context.Context
	Client            *kubernetes.Clientset
	BootstrapDuration time.Duration
	ClusterSize       int
	Generic           client.Client
	Namespace         string
	Image             string
	PoetImage         string
	NodeSelector      map[string]string
	Log               *zap.SugaredLogger
}

Context must be created for every test that needs isolated cluster.

func New

func New(t *testing.T, opts ...Opt) *Context

New creates context for the test.

type Opt

type Opt func(*cfg)

Opt is for configuring Context.

func Labels

func Labels(labels ...string) Opt

Labels sets list of labels for the test.

Jump to

Keyboard shortcuts

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