chart

package
v0.0.0-...-6a4f5cd Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 23 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultYamllintConf string

Functions

This section is empty.

Types

type Capabilities

type Capabilities helmChartUtil.Capabilities

type Chart

type Chart interface {
	GetPath() string
	GetHelmChart() *helmChart.Chart

	RenderValues(opts *TemplateOptions) (helmChartUtil.Values, error)
	RenderTemplate(opts *TemplateOptions) (Template, error)
}

func NewChart

func NewChart(path string) (Chart, error)

type HelmLintOptions

type HelmLintOptions struct {
	Rancher RancherHelmLintOptions
}

type RancherHelmLintOptions

type RancherHelmLintOptions struct {
	Enabled bool
}

type Template

type Template interface {
	checker.Checker

	GetChart() Chart
	GetOptions() *TemplateOptions
	GetFiles() map[string]string
	GetObjectSets() map[string]*objectset.ObjectSet
	GetValues() map[string]interface{}

	YamlLint(t *testing.T, yamllintConf string)
	HelmLint(t *testing.T, opts *HelmLintOptions)
}

type TemplateOptions

type TemplateOptions struct {
	Values       *Values
	Release      Release
	Capabilities *Capabilities
}

func NewTemplateOptions

func NewTemplateOptions(name, namespace string) *TemplateOptions

func (*TemplateOptions) IsUpgrade

func (o *TemplateOptions) IsUpgrade(isUpgrade bool) *TemplateOptions

func (*TemplateOptions) Set

func (o *TemplateOptions) Set(key, value interface{}) *TemplateOptions

func (*TemplateOptions) SetKubeVersion

func (o *TemplateOptions) SetKubeVersion(version string) *TemplateOptions

func (*TemplateOptions) SetValue

func (o *TemplateOptions) SetValue(key, value string) *TemplateOptions

func (TemplateOptions) String

func (o TemplateOptions) String() string

type Values

type Values helmValues.Options

func NewValues

func NewValues() *Values

func (*Values) MergeValues

func (v *Values) MergeValues(values ...*Values) *Values

func (*Values) Set

func (v *Values) Set(key, value interface{}) *Values

func (*Values) SetValue

func (v *Values) SetValue(key, value string) *Values

func (*Values) ToMap

func (v *Values) ToMap() (map[string]interface{}, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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