cuestomize

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultResourcesPath is the default path to the directory containing the CUE resources.
	DefaultResourcesPath = "/cue-resources"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CUEstomizeFuncBuilder

type CUEstomizeFuncBuilder struct {
	// contains filtered or unexported fields
}

CUEstomizeFuncBuilder is a builder for the CUEstomize KRM function.

func NewBuilder

func NewBuilder() *CUEstomizeFuncBuilder

NewBuilder creates a new CUEstomizeFuncBuilder with the default resources path.

func (*CUEstomizeFuncBuilder) Build

func (b *CUEstomizeFuncBuilder) Build(ctx context.Context) (func([]*kyaml.RNode) ([]*kyaml.RNode, error), error)

Build returns a function that can be used to generate resources from a CUE configuration and some input resources.

func (*CUEstomizeFuncBuilder) SetConfig

SetConfig sets the reference to the configuration object that the KRM function will receive in input.

func (*CUEstomizeFuncBuilder) SetResourcesPath

func (b *CUEstomizeFuncBuilder) SetResourcesPath(resourcesPath string) *CUEstomizeFuncBuilder

SetResourcesPath sets the path to the directory containing the CUE resources.

type KRMFunction

type KRMFunction = func([]*kyaml.RNode) ([]*kyaml.RNode, error)

KRMFunction is the function type of Kustomize KRM functions.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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