parser

package
v0.54.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptionWithAPIVersions

func OptionWithAPIVersions(values ...string) options.ParserOption

func OptionWithFileValues

func OptionWithFileValues(values ...string) options.ParserOption

func OptionWithKubeVersion added in v0.51.0

func OptionWithKubeVersion(value string) options.ParserOption

func OptionWithStringValues

func OptionWithStringValues(values ...string) options.ParserOption

func OptionWithValues

func OptionWithValues(values ...string) options.ParserOption

func OptionWithValuesFile

func OptionWithValuesFile(paths ...string) options.ParserOption

Types

type ChartFile

type ChartFile struct {
	TemplateFilePath string
	ManifestContent  string
}

type ConfigurableHelmParser

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

type Parser

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

func New

func New(path string, opts ...options.ParserOption) (*Parser, error)

func (*Parser) ParseFS

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

func (*Parser) RenderedChartFiles

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

func (*Parser) SetAPIVersions

func (p *Parser) SetAPIVersions(values ...string)

func (*Parser) SetDebugWriter

func (p *Parser) SetDebugWriter(writer io.Writer)

func (*Parser) SetFileValues

func (p *Parser) SetFileValues(values ...string)

func (*Parser) SetKubeVersion added in v0.51.0

func (p *Parser) SetKubeVersion(value string)

func (*Parser) SetSkipRequiredCheck

func (p *Parser) SetSkipRequiredCheck(b bool)

func (*Parser) SetStringValues

func (p *Parser) SetStringValues(values ...string)

func (*Parser) SetValues

func (p *Parser) SetValues(values ...string)

func (*Parser) SetValuesFile

func (p *Parser) SetValuesFile(s ...string)

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