helm

package
v0.0.0-...-35696f1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// https://helm.sh/docs/topics/advanced/#storage-backends
	DefaultHelmDriver    = "secret"
	DefaultHelmNamespace = "default"
)
View Source
const (
	DefaultInstallTimeout   = 15 * time.Minute
	DefaultUninstallTimeout = 5 * time.Minute
)

Variables

This section is empty.

Functions

func LoadFS

func LoadFS(fsys fs.FS) (*chart.Chart, error)

func LoadPath

func LoadPath(path string) (*chart.Chart, error)

func LoadPathOrEmbedded

func LoadPathOrEmbedded(path string) (*chart.Chart, error)

Types

type Config

type Config struct {
	Namespace      string `mapstructure:"namespace"`
	ReleaseName    string `mapstructure:"release_name"`
	ChartPath      string `mapstructure:"chart_path"`
	StorageDriver  string `mapstructure:"driver"`
	KubeConfigPath string `mapstructure:"kubeconfig"`
	// contains filtered or unexported fields
}

type ConfigOptFn

type ConfigOptFn func(*Config) error

ConfigOptFn defines transformer function for Config.

func WithDefaultKubeConfigPath

func WithDefaultKubeConfigPath(path string) ConfigOptFn

func WithDefaultNamespace

func WithDefaultNamespace(ns string) ConfigOptFn

func WithDefaultReleaseName

func WithDefaultReleaseName(release string) ConfigOptFn

func WithValuesOpts

func WithValuesOpts(opts []ValuesOpts) ConfigOptFn

type Installer

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

func New

func New(config *Config, opts ...ConfigOptFn) (*Installer, error)

func (*Installer) Deployments

func (i *Installer) Deployments() []string

func (*Installer) Install

func (i *Installer) Install(ctx context.Context) error

func (*Installer) Uninstall

func (i *Installer) Uninstall(ctx context.Context) error

type Values

type Values = chartutil.Values

func NewEmptyValues

func NewEmptyValues() Values

type ValuesOpts

type ValuesOpts func(values *Values) error

func WithContainerImages

func WithContainerImages(images *ContainerImages) ValuesOpts

func WithGatewayNodePort

func WithGatewayNodePort(port int) ValuesOpts

func WithKubernetesProvider

func WithKubernetesProvider() ValuesOpts

func WithValues

func WithValues(v Values) ValuesOpts

func WithValuesFile

func WithValuesFile(path string) ValuesOpts

Jump to

Keyboard shortcuts

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