helm

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultNamespace = "default"
)

Variables

This section is empty.

Functions

func LoadChartFromFS

func LoadChartFromFS(filesystem fs.FS) (*chart.Chart, error)

LoadChartFromFS loads a Helm chart from the filesystem

func TemplateChart

func TemplateChart(ctx context.Context, chart *helmChart.Chart, namespace string, vals map[string]any) (string, error)

TemplateChart renders a Helm chart with the given namespace and values If namespace is empty, it defaults to "default"

Types

type PullOption

type PullOption func(*pullOption)

func WithRegistryClient

func WithRegistryClient(client *registry.Client) PullOption

WithRegistryClient sets the registry client to use

func WithVersion

func WithVersion(v string) PullOption

WithVersion sets the version of the chart to pull

type PullResult

type PullResult struct {
	Chart   *helmChart.Chart
	Version string
}

func PullChart

func PullChart(_ context.Context, repository, chartName, dstDir string, opts ...PullOption) (*PullResult, error)

PullChart pulls a helm chart to the destination directory Version defaults to "latest"

Jump to

Keyboard shortcuts

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