template

package
v0.0.0-...-b320a0e Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderTestruns

func RenderTestruns(ctx context.Context, log logr.Logger, parameters *Parameters, shootFlavors []*shootflavors.ExtendedFlavorInstance) (testrunner.RunList, error)

RenderTestruns renders a helm chart with containing testruns, adds the provided parameters and values, and returns the parsed and modified testruns. Adds the component descriptor to metadata.

Types

type Parameters

type Parameters struct {
	FlavorConfigPath string
	// Path to the kubeconfig where the gardener is running.
	GardenKubeconfigPath     string
	Namespace                string
	FlavoredTestrunChartPath string
	DefaultTestrunChartPath  string

	// metadata
	Landscape               string
	ComponentDescriptorPath string
	Repository              string
	OCMConfigPath           string

	SetValues  []string
	FileValues []string
}

Parameters are the parameters which describe the test that is executed by the testrunner.

type ValueRenderer

type ValueRenderer interface {
	Render(defaultValues map[string]interface{}) (values map[string]interface{}, metadata *metadata.Metadata, info interface{}, err error)
}

ValueRenderer renders the helm values, run metadata and info for a specific chart rendering

func NewDefaultValueRenderer

func NewDefaultValueRenderer(parameters *internalParameters) ValueRenderer

func NewShootValueRenderer

func NewShootValueRenderer(log logr.Logger, shoot *shootflavors.ExtendedFlavorInstance, parameters *internalParameters) ValueRenderer

Jump to

Keyboard shortcuts

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