helmshim

package module
v0.0.0-...-57d0686 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 14 Imported by: 1 module, 1 package

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

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