post

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: 14 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 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

func Teardown

func Teardown(ctx context.Context, undos Undos)

Teardown undoes what a run did. Custom resources in every applied manifest go first, newest first, while the operators that finalize them still run; then each Undo in reverse: manifests deleted, releases uninstalled.

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

type Undos

type Undos []Undo

Jump to

Keyboard shortcuts

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