build

package
v0.2.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

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 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) 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.

Jump to

Keyboard shortcuts

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