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 ¶
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.