paths

package
v1.14.5 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ModuleRootDir is the filesystem path to the root of the repository.
	ModuleRootDir = filepath.Join(filepath.Dir(b), "../../..")

	// BinDir is the filesystem path of the bin directory which is populated using
	// Makefile commands
	// TODO: the BINDIR is configurable in make but is hardcoded here. It might be nice
	// to detect the BINDIR here (`make print-bindir`?)
	BinDir = filepath.Join(ModuleRootDir, "_bin")

	// BinToolsDir is the filesystem path of the bin/tools directory which can for
	// example be populated by `make -f make/Makefile integration-test-tools`.
	BinToolsDir = filepath.Join(BinDir, "tools")

	// BinCRDDir is the filesystem path of templated CRDs created by Makefile commands
	BinCRDDir = filepath.Join(BinDir, "yaml", "templated-crds")
)

Functions

func CRDDirectory

func CRDDirectory() (string, error)

CRDDirectory returns the directory containing CRDs, if it can be found.

func PathForCRD

func PathForCRD(t *testing.T, name string) string

PathForCRD attempts to find a path to the named CRD. The 'name' is the name of the resource contained within the CRD as denoted by the filename, e.g. 'foobar' would find a CRD with a filename containing the word 'foobar'.

Types

This section is empty.

Jump to

Keyboard shortcuts

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