parser

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartFile

type ChartFile struct {
	TemplateFilePath string
	ManifestContent  string
}

type ConfigurableHelmParser

type ConfigurableHelmParser interface {
	SetValuesFile(...string)
	SetValues(...string)
	SetFileValues(...string)
	SetStringValues(...string)
	SetAPIVersions(...string)
	SetKubeVersion(string)
}

type Option added in v0.55.0

type Option func(p *Parser)

func OptionWithAPIVersions

func OptionWithAPIVersions(values ...string) Option

func OptionWithFileValues

func OptionWithFileValues(values ...string) Option

func OptionWithKubeVersion added in v0.51.0

func OptionWithKubeVersion(value string) Option

func OptionWithStringValues

func OptionWithStringValues(values ...string) Option

func OptionWithValues

func OptionWithValues(values ...string) Option

func OptionWithValuesFile

func OptionWithValuesFile(paths ...string) Option

type Parser

type Parser struct {
	ChartSource string
	// contains filtered or unexported fields
}

func New

func New(src string, opts ...Option) (*Parser, error)

func (*Parser) ParseFS

func (p *Parser) ParseFS(ctx context.Context, fsys fs.FS, target string) error

func (*Parser) RenderedChartFiles

func (p *Parser) RenderedChartFiles() ([]ChartFile, error)

type ValueOptions

type ValueOptions struct {
	ValueFiles   []string
	StringValues []string
	Values       []string
	FileValues   []string
}

func (*ValueOptions) MergeValues

func (opts *ValueOptions) MergeValues() (map[string]any, error)

MergeValues merges values from files specified via -f/--values and directly via --set, --set-string, or --set-file, marshaling them to YAML

Jump to

Keyboard shortcuts

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