Documentation
¶
Overview ¶
Package e2e implements the orchestration loop for `ork e2e`.
A Runner executes a declarative E2E spec through its full lifecycle:
- Cluster provisioning (kind) — skipped when --use-current or --cluster is set
- CRD apply
- Optional setup manifests
- Bundle generate + apply
- Orkestra helm install
- CR apply
- Expectation polling
- Teardown — always runs for non-owned clusters (--use-current, --cluster); for owned clusters only when --keep-cluster is absent
Teardown reverses every applied resource in the correct order: CR delete → helm uninstall → bundle delete → setup (reverse) → CRDs. This keeps borrowed clusters clean regardless of pass/fail.
Run returns a *Result with per-case timings that callers (e.g. registry push) embed as OCI annotations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaseResult ¶
CaseResult holds the outcome of a single expectation.
type Result ¶
type Result struct {
Name string
Cases []CaseResult
Elapsed time.Duration
}
Result holds the outcome of a complete E2E run. It is returned by Run and consumed by ork registry push to embed verification metadata into OCI annotations.
func (*Result) Duration ¶
Duration returns the total elapsed time as a human-readable string (e.g. "45s").