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 ¶
- func ApplyCommonMetadata(r *render.Render, metadata *fluxksv1.CommonMetadata) error
- func WalkPaths(fs filesys.FileSystem, root string, visit func(string) error) error
- type Builder
- func (b *Builder) AddFluxPathWithProducer(fs filesys.FileSystem, path string, producer string, opts FluxOptions) error
- func (b *Builder) AddKustomization(fs filesys.FileSystem, path string) error
- func (b *Builder) AddKustomizationWithProducer(fs filesys.FileSystem, path, producer string) error
- func (b *Builder) AddPath(fs filesys.FileSystem, path string) error
- func (b *Builder) AddPathWithProducer(fs filesys.FileSystem, path, producer string) error
- func (b *Builder) AddPaths(fs filesys.FileSystem, root string) error
- func (b *Builder) AddPathsWithProducer(fs filesys.FileSystem, root, producer string) error
- func (b *Builder) SetLocalOnly(root string)
- type FluxOptions
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.
Types ¶
type Builder ¶
Builder owns path building and the passive collection receiving its results.
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 ¶
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.