Documentation
¶
Index ¶
- Variables
- func MustRenderChart(opts ...RenderOption)
- func RenderChart(opts ...RenderOption) error
- type RenderOption
- func ParseFlags() []RenderOption
- func WithChartPath(path string) RenderOption
- func WithInputReader(r *function.InputReader) RenderOption
- func WithNamespace(ns string) RenderOption
- func WithOutputWriter(w *function.OutputWriter) RenderOption
- func WithReleaseName(rn string) RenderOption
- func WithValuesFunc(fn ValuesFunc) RenderOption
- type ValuesFunc
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)
Click to show internal directories.
Click to hide internal directories.