testenv

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package testenv starts the envtest (kubebuilder) control plane shared by the repo's apiserver-backed test packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start() (*rest.Config, func())

Start launches a kube-apiserver+etcd pair with the repo CRDs installed and returns a client config plus a stop function. Call it from TestMain.

Under -short it exits the test binary with success instead: a cold binary cache needs a download, so `go test -short ./...` always works offline.

Types

This section is empty.

Jump to

Keyboard shortcuts

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