build

package
v0.2.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: GPL-3.0 Imports: 16 Imported by: 1 module, 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 build loads manifest paths and executes Kustomize for render plugins. Host inventory and comparison use the passive pkg/render collection instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyCommonMetadata

func ApplyCommonMetadata(r *render.Render, metadata *fluxksv1.CommonMetadata) error

ApplyCommonMetadata follows Flux's apply-stage behavior: only object metadata is changed, after postBuild substitution. Pod templates and selectors are not.

func WalkPaths

func WalkPaths(fs filesys.FileSystem, root string, visit func(string) error) error

WalkPaths visits independent build directories, stopping below Kustomize bases.

Types

type Builder

type Builder struct {
	*render.Render
	// contains filtered or unexported fields
}

Builder owns path building and the passive collection receiving its results.

func New

func New(log logr.Logger) *Builder

New creates a builder with default Kustomize options and execution plugins disabled.

func (*Builder) AddFluxPathWithProducer

func (b *Builder) AddFluxPathWithProducer(
	fs filesys.FileSystem,
	path string,
	producer string,
	opts FluxOptions,
) error

AddFluxPathWithProducer builds the generated Flux overlay without modifying source files. The merge rules follow fluxcd/pkg/kustomize v1.18.0 (the version used by kustomize-controller v1.6.1, matching our controller API). Actual transforms, selector matching, name references and errors belong to Kustomize, not post-render YAML rewrites. In particular, images replace matching entries and prefixes/suffixes override the root configuration rather than wrapping it.

func (*Builder) AddKustomization

func (b *Builder) AddKustomization(fs filesys.FileSystem, path string) error

AddKustomization builds a Kustomize directory and records its path provenance.

func (*Builder) AddKustomizationWithProducer

func (b *Builder) AddKustomizationWithProducer(fs filesys.FileSystem, path, producer string) error

AddKustomizationWithProducer builds a directory and records the producer.

func (*Builder) AddPath

func (b *Builder) AddPath(fs filesys.FileSystem, path string) error

AddPath builds a Kustomize directory, or loads its raw YAML manifests.

func (*Builder) AddPathWithProducer

func (b *Builder) AddPathWithProducer(fs filesys.FileSystem, path, producer string) error

AddPathWithProducer loads a path and records its rendering producer.

func (*Builder) AddPaths

func (b *Builder) AddPaths(fs filesys.FileSystem, root string) error

AddPaths recursively loads independent directories, stopping below Kustomize bases.

func (*Builder) AddPathsWithProducer

func (b *Builder) AddPathsWithProducer(fs filesys.FileSystem, root, producer string) error

AddPathsWithProducer recursively builds paths with the supplied producer.

func (*Builder) SetLocalOnly

func (b *Builder) SetLocalOnly(root string)

SetLocalOnly confines subsequent builds and reads to root.

type FluxOptions

type FluxOptions struct {
	Namespace      string
	NamePrefix     string
	NameSuffix     string
	Patches        []fluxkustomize.Patch
	Images         []fluxkustomize.Image
	Components     []string
	CommonMetadata *fluxksv1.CommonMetadata
}

FluxOptions holds only rendering inputs, so discovery keys include all build overrides without depending on reconciliation state or object metadata.

Jump to

Keyboard shortcuts

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