Documentation
¶
Overview ¶
Package test contains test utilities for the fleetconfig-controller project.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindEnvTestBinaryDir ¶
FindEnvTestBinaryDir locates the first binary in the specified path. ENVTEST-based tests depend on specific binaries, usually located in paths set by controller-runtime. When running tests directly (e.g., via an IDE) without using Makefile targets, the 'BinaryAssetsDirectory' must be explicitly configured.
This function streamlines the process by finding the required binaries, similar to setting the 'KUBEBUILDER_ASSETS' environment variable. To ensure the binaries are properly set up, run 'make setup-envtest' beforehand.
func GetProjectDir ¶ added in v0.0.13
GetProjectDir returns the fleetconfig-controller project root directory. It works by finding "fleetconfig-controller" in the current working directory path.