runner

package
v0.0.0-...-abaeddd Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 38 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package runner runs a jig: it provides the cluster, loads the images, provisions the environment, runs the prepare steps in order with the expectations that follow each, runs the imports, tears down what it did, and writes the report.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

Run runs s and returns its result. The error is set when the run could not complete or an expectation failed.

Types

type Options

type Options struct {
	// Context runs against this kubectl context instead of creating a cluster.
	Context string
	// UseCurrent runs against the current context instead of creating a cluster.
	UseCurrent bool
	// KeepCluster (--keep=cluster) keeps a cluster the run creates; what the
	// run did is still torn down.
	KeepCluster bool
	// Keep (--keep) leaves everything as the run left it: no teardown, the
	// cluster kept.
	Keep bool

	// Workers and KindVersion shape a cluster the run creates; KindBinDir is
	// where the kind binary is kept ("" is kind's default).
	Workers     int
	KindVersion string
	KindBinDir  string
	// DefaultClusterName names the cluster when the test names none; "" is
	// "jig".
	DefaultClusterName string

	// Images narrows environment.images; with none declared, it is the list.
	Images []string
	// Parallel is how many images build at once; 0 is the default
	// (min(4, CPUs/2)) and 1 builds them one after another.
	Parallel int
	// EcosystemChart is the data-services chart to install the ecosystem
	// with: an oci:// reference or a local directory, for chart work.
	// Empty is the chart jig pins.
	EcosystemChart string
	// Functions are the template functions expectations start from; nil is
	// KEL's. The jig's functions are added to them.
	Functions template.FuncMap
	// Env is a parent's env, inherited as defaults by an import.
	Env         map[string]string
	MaxFailures int
	// DryRun sends every write to the cluster as a server dry run.
	DryRun bool

	// ReportFile writes the report there too: JSON for .json, else Markdown.
	ReportFile string
	// Caller names who ran the test in the report ("jig" by default).
	Caller string
	// Command and SpecPath are shown in the report.
	Command, SpecPath string
	// FieldManager owns what the run applies server-side; "" is "jig".
	FieldManager string

	// Load reads an import; nil is check.FromFile. A caller whose imports are
	// its own format maps them here.
	Load func(path string) (*spec.Declaration, error)
	// contains filtered or unexported fields
}

Options configure a run.

Jump to

Keyboard shortcuts

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