Documentation ¶
Index ¶
- func CreateTestVariant(b testing.TB, baseBlueprintDir string, ...) (*krmt.KRMBlueprintTest, string, func())
- func CreateVariant(b testing.TB, baseDir string, buildDir string, variantName string, ...)
- func GetBuildDir(b testing.TB) (string, func())
- func KubectlWaitForDeletion(b testing.TB, dir string, retries int, retryInterval time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestVariant ¶
func CreateTestVariant(b testing.TB, baseBlueprintDir string, variantSetters map[string]map[string]string) (*krmt.KRMBlueprintTest, string, func())
CreateTestVariant creates variants of a baseBlueprint and renders them with variantSetters
func CreateVariant ¶
func CreateVariant(b testing.TB, baseDir string, buildDir string, variantName string, setters map[string]string)
CreateVariant creates a variant of baseDir blueprint in the buildDir/variantName and upserts any given setters for that variant.
func GetBuildDir ¶
func GetBuildDir(b testing.TB) (string, func())
GetBuildDir creates a directory to store generated variants and cleanup fn.
func KubectlWaitForDeletion ¶
KubectlWaitForDeletion waits for resources in dir to be deleted. Workaround until https://github.com/GoogleContainerTools/kpt/issues/2374
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.