kustomization

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package kustomization reconciles Flux Kustomizations: wait on dependsOn / sourceRef / structural parent, resolve postBuild substitutions, run the kustomize SDK, parse the result back into the Store, and publish an Emission. Failures bubble up to the orchestrator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	*base.Controller

	// Trees shares remote fetches and persisted renders.
	Trees     *kustomize.TreeCache
	Discovery *discovery.Result
	// contains filtered or unexported fields
}

Controller orchestrates Kustomization reconciliation. Reconcile- shaping state (Filter, ParentOf) flows in via Configure exactly once before StartLifecycle. The invariant — "config is read-only after StartLifecycle" — is encoded in the embedded *base.Controller, not just in code review.

func New

func New(s *store.Store, t *task.Service, trees *kustomize.TreeCache) *Controller

New constructs a Kustomization controller.

func (*Controller) Configure

func (c *Controller) Configure(opts Options, retry cache.RetryConfig)

Configure installs the post-bootstrap state. Panics if called after StartLifecycle — encodes the invariant that reconcile-shaping config is read-only once the controller is dispatching.

func (*Controller) Owns added in v0.7.3

Owns reports whether id belongs to the Kustomization controller.

func (*Controller) PreviousRender added in v0.7.3

func (c *Controller) PreviousRender(
	ctx context.Context,
	obj manifest.BaseManifest,
	previous schedule.Result,
) base.History

PreviousRender prepares the immutable candidate with captured inputs without reconciling or acquiring sources.

func (*Controller) ReconcileNode added in v0.3.4

func (c *Controller) ReconcileNode(
	ctx context.Context,
	id manifest.NamedResource,
	level manifest.DrainLevel,
	previous schedule.Result,
) *base.Execution

ReconcileNode runs id's reconcile under the dag engine, returning the blocked dependency set (nil = terminalized). The orchestrator's scheduler Dispatcher calls this for Kustomization nodes.

type Options

type Options struct {
	base.Options

	Discovery *discovery.Result

	// StrictSubstitutions rejects undefined variables without defaults.
	StrictSubstitutions bool
}

Options carries the post-bootstrap state the orchestrator wires onto the controller before StartLifecycle. base.Options holds the common reconcile config.

Jump to

Keyboard shortcuts

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