helmshim

package module
v0.0.0-...-f5c7bee Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrChartNotFound      = errors.New("the requested chart could not be loaded")
	ErrRenderAction       = errors.New("the chart could not be rendered with the given values")
	ErrCannotParseChart   = errors.New("helm produced a set of manifests that is not parseable")
	ErrConstructingValues = errors.New("error while constructing helm values")
)

Functions

func MustRenderChart

func MustRenderChart(opts ...RenderOption)

MustRenderChart is the entrypoint to the Helm shim.

The most basic shim cmd's main func only needs one line: > helmshim.MustRenderChart(helmshim.ParseFlags()...)

func RenderChart deprecated

func RenderChart(opts ...RenderOption) error

Deprecated: Use Synth directly

func Synth

func Synth[T function.Inputs](values ValuesFunc[T], opts ...RenderOption) function.SynthFunc[T]

Synth produced a SynthFunc that 1) uses inputs as a values func rather than input reader 2) a writer that saves the objects to a slice rather than serializing

Types

type ChartLoader

type ChartLoader func() (*chart.Chart, error)

ChartLoader is the function for loading a helm chart.

type RenderOption

type RenderOption func(*options)

func ParseFlags

func ParseFlags() []RenderOption

func WithChartLoader

func WithChartLoader(cl ChartLoader) RenderOption

func WithChartPath

func WithChartPath(path string) RenderOption

func WithInputReader

func WithInputReader(r *function.InputReader) RenderOption

func WithNamespace

func WithNamespace(ns string) RenderOption

func WithOutputWriter

func WithOutputWriter(w *function.OutputWriter) RenderOption

func WithReleaseName

func WithReleaseName(rn string) RenderOption

func WithValuesFunc

func WithValuesFunc(fn ValuesFunc[*function.InputReader]) RenderOption

type ValuesFunc

type ValuesFunc[T function.Inputs] func(inputs T) (map[string]any, error)

Jump to

Keyboard shortcuts

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