Documentation
¶
Overview ¶
Package testintegration test setup for running testintegration tests using the envtest kubebuilder package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Log is the test logger used by the testintegration tests and server. Log = zap.New(zap.UseFlagOptions(&zap.Options{ Development: true, TimeEncoder: zapcore.ISO8601TimeEncoder, })) // Client is the kubernetes client. Client client.Client // RestartManager is the controller-runtime manager for the operator RestartManager func(string) error )
Functions ¶
func EnvTestSetup ¶
func EnvTestSetup() (func(), error)
EnvTestSetup sets up the envtest environment for a testing package. This is intended to be called from `func TestMain(m *testing.M)` so that the environment is configured before
func TestContext ¶
TestContext returns a background context that includes appropriate logging configuration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.