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 ¶
- type Controller
- func (c *Controller) Configure(opts Options, retry cache.RetryConfig)
- func (*Controller) Owns(id manifest.NamedResource) bool
- func (c *Controller) PreviousRender(ctx context.Context, obj manifest.BaseManifest, previous schedule.Result) base.History
- func (c *Controller) ReconcileNode(ctx context.Context, id manifest.NamedResource, level manifest.DrainLevel, ...) *base.Execution
- type Options
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 (*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
func (*Controller) Owns(id manifest.NamedResource) bool
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.