Documentation
¶
Overview ¶
Package intent (imported as pkg/intent/package — "package" is a Go keyword, so the directory is named singular while the package itself is still named intent, matching pkg/intent/deployment and pkg/intent/serviceunit's naming) owns PackageIntent, the compiled, immutable execution plan for a Package CR: its stable identity, manifest source, GitOps state repository, and apply strategy.
BuildPackageIntent (builder.go) is the constructor, compiling a resolved Package (resolution/packages/resolve.ResolvedPackage) into a PackageIntent once ahead of execution — the same "resolve once, execute from an immutable plan" shape used by pkg/intent/deployment.IntentBuilder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PackageIntent ¶
type PackageIntent struct {
// Stable identity
ID domain.PackageID
// OwnerUID is the UID of the Package CR. Objects created for the
// Package are owned by it, so they are garbage-collected with it.
OwnerUID types.UID
// Labels are the environments.blanketops.dev/* labels of the Package
// CR, carried onto every object created for it.
Labels map[string]string
// Source of manifests
Source domain.PackageSource
// State repository (GitOps anchor)
StateRepo domain.StateRepository
// Execution behavior
DiffEnabled bool
Strategy domain.ApplyStrategy
// Resolved ref (branch/tag/commit)
ResolvedRef string
ResolvedCommit string
}
PackageIntent is the compiled, immutable execution plan.
func BuildPackageIntent ¶
func BuildPackageIntent( rp *resolve.ResolvedPackage, ) (*PackageIntent, error)
BuildPackageIntent compiles a RESOLVED Package into an immutable execution plan.