helm

package
v4.0.0-...-3298fe9 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

package helm contains code vendored from the upstream Helm project.

package helm contains code vendored from the upstream Helm project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRepositoryOpts

func ApplyRepositoryOpts(cpo *action.ChartPathOptions, p getter.Providers, repoOpts helmv4.RepositoryOpts) error

func LocateKeyring

func LocateKeyring(p getter.Providers, asset pulumi.Asset) (string, error)

LocateKeyring locates a keyring file for Helm from the given asset.

Types

type ExecuteF

type ExecuteF func(ctx context.Context, i *action.Install, chrt *chart.Chart, vals map[string]interface{}) (*release.Release, error)

type FakeExecutor

type FakeExecutor struct {
	// contains filtered or unexported fields
}

func NewFakeExecutor

func NewFakeExecutor() *FakeExecutor

func (*FakeExecutor) Action

func (f *FakeExecutor) Action() *action.Install

func (*FakeExecutor) Chart

func (f *FakeExecutor) Chart() *chart.Chart

func (*FakeExecutor) Execute

func (f *FakeExecutor) Execute(ctx context.Context, i *action.Install, chrt *chart.Chart, vals map[string]interface{}) (*release.Release, error)

func (*FakeExecutor) Values

func (f *FakeExecutor) Values() map[string]interface{}

type FakeLocator

type FakeLocator struct {
	Path string
	Err  error
	// contains filtered or unexported fields
}

func NewFakeLocator

func NewFakeLocator(path string, err error) *FakeLocator

func (*FakeLocator) Action

func (f *FakeLocator) Action() *action.Install

func (*FakeLocator) LocateChart

func (f *FakeLocator) LocateChart(i *action.Install, name string, settings *cli.EnvSettings) (string, error)

func (*FakeLocator) Name

func (f *FakeLocator) Name() string

func (*FakeLocator) Settings

func (f *FakeLocator) Settings() *cli.EnvSettings

type InitActionConfigF

type InitActionConfigF func(actionConfig *action.Configuration, namespaceOverride string) error

func FakeInitActionConfig

func FakeInitActionConfig(defaultNamespace string, caps *chartutil.Capabilities) InitActionConfigF

type LocateChartF

type LocateChartF func(i *action.Install, name string, settings *cli.EnvSettings) (string, error)

type TemplateCommand

type TemplateCommand struct {
	TemplateOrInstallCommand

	Validate    bool
	IncludeCRDs bool
	SkipTests   bool
}

TemplateCommand for `helm template`.

func (*TemplateCommand) Execute

func (cmd *TemplateCommand) Execute(ctx context.Context) (*release.Release, error)

Execute runs the `helm template` command.

type TemplateOrInstallCommand

type TemplateOrInstallCommand struct {
	// Install parameters.
	*action.Install

	// Chart is the chart specification, which can be:
	// - a path to a local chart directory or archive file
	// - a qualified chart reference (e.g., "stable/mariadb") based on the local repository configuration
	// - a URL to a remote chart (https://, oci://, file://, etc.)
	Chart string

	// Values to be applied to the chart.
	Values ValueOpts
	// contains filtered or unexported fields
}

TemplateOrInstallCommand for `helm template` or `helm install`.

type Tool

type Tool struct {
	EnvSettings *cli.EnvSettings
	HelmDriver  string
	// contains filtered or unexported fields
}

Tool for executing Helm commands via the Helm library.

func NewFakeTool

func NewFakeTool(settings *cli.EnvSettings, initActionConfig InitActionConfigF, locateChart LocateChartF, execute ExecuteF) *Tool

NewFakeTool creates a new Helm tool with faked execution.

func NewTool

func NewTool(settings *cli.EnvSettings) *Tool

NewTool creates a new Helm tool with the given environment settings.

func (*Tool) AllGetters

func (t *Tool) AllGetters() getter.Providers

func (*Tool) Template

func (t *Tool) Template() *TemplateCommand

Template returns a new `helm template` command.

type ValueOpts

type ValueOpts struct {
	// ValuesFiles is a list of Helm values files encapsulated as Pulumi assets.
	ValuesFiles []pulumi.Asset
	// Values is a map of Pulumi values.
	Values map[string]any
}

ValueOpts handles merging of chart values from various sources.

func (*ValueOpts) MergeValues

func (opts *ValueOpts) MergeValues(p getter.Providers) (map[string]interface{}, error)

MergeValues merges the values in Helm's priority order.

Jump to

Keyboard shortcuts

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