{"modulePath":"github.com/openshift/controller-runtime-common","version":"v0.0.0-20261026124434-bdfc411d93cd","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package envtest\n\nPackage envtest provides utilities for working with the controller-runtime envtest package.\n\n## Functions\n\n```go\nfunc GetCRDManifestsPath(ctx context.Context, module string, pathSegments ...string) (string, error)\n```\nGetCRDManifestsPath returns the full path to the CRD manifests directory within a go module. It combines GetGoModuleDirectory with the provided path segments.\n\nExample:\n\n\tcrdPath, err := GetCRDManifestsPath(ctx, \"github.com/openshift/api\", \"config\", \"v1\", \"zz_generated.crd-manifests\")\n\tif err != nil {\n\t    return err\n\t}\n\n```go\nfunc GetGoModuleDirectory(ctx context.Context, module string) (string, error)\n```\nGetGoModuleDirectory returns the directory path for a go module. It uses 'go list -m' to find the module directory, which will be in the module cache if the module is not vendored.\n\nExample:\n\n\tmoduleDir, err := GetGoModuleDirectory(\"github.com/openshift/api\")\n\tif err != nil {\n\t    return err\n\t}\n\n","path":"github.com/openshift/controller-runtime-common/pkg/testutils/envtest","name":"envtest","synopsis":"Package envtest provides utilities for working with the controller-runtime envtest package.","isRedistributable":true}
