Documentation
¶
Overview ¶
Package post tears a jig run down: what it applied and installed, removed in reverse once its expectations and imports have run.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Undo ¶
type Undo struct {
// Label names it in the output, such as "prepare order.yaml".
Label string
Path string
Release *cluster.HelmRelease
// Keep leaves it in place: a release a parent run owns, which it removes
// after its last import.
Keep bool
// File is a generated manifest to remove from disk once deleted.
File bool
// Do undoes it in code, for what is neither a manifest nor a release:
// a Secret the run wrote, a namespace it created.
Do func(context.Context) error
}
Undo is one thing a run did, to undo at teardown: a manifest it applied (Path) or a Helm release it installed (Release).