intent

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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

func BlanketOpsLabels

func BlanketOpsLabels(labels map[string]string) map[string]string

BlanketOpsLabels returns the environments.blanketops.dev/* labels from labels, or nil when there are none.

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.

Jump to

Keyboard shortcuts

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