helmshim

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

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 11 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

func RenderChart(opts ...RenderOption) error

Types

type RenderOption

type RenderOption func(*options)

func ParseFlags

func ParseFlags() []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) RenderOption

type ValuesFunc

type ValuesFunc func(*function.InputReader) (map[string]any, error)

Jump to

Keyboard shortcuts

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