func New(opts ...Option) (*envtest.Environment, error)
New creates a envtest.Environment that is:
func Setup(opts ...Option) *envtest.Environment
Setup combines `New()`, `SetupEnvtestTools()` and starts the created envtest.Environment, can be used to reduce test setup boilerplate.
func SetupEnvtestTools()
SetupEnvtestTools attempts to configure environment variables based on where envtest binary dependencies (etcd, kube-apiserver, kubectl) will be when they are provided by Bazel, by default. It respects existing values set for those binaries, see: https://book.kubebuilder.io/reference/envtest.html#environment-variables
Environment is an alias for envtest.Environment
type Environment = envtest.Environment
Option defines publicly visible options for instantiating envtest
type Option func(*envtestOpts)
func WithoutCRDs() Option
WithoutCRDs will skip CRD loading during envtest setup. Useful if you need to apply CRDs during your test