benchmark

package
v0.14.1 Latest Latest
Warning

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

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

Documentation

Index

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

func KubectlWaitForDeletion(b testing.TB, dir string, retries int, retryInterval time.Duration)

KubectlWaitForDeletion waits for resources in dir to be deleted. Workaround until https://github.com/GoogleContainerTools/kpt/issues/2374

Types

This section is empty.

Jump to

Keyboard shortcuts

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