helm

package
v0.41.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartLoader

type ChartLoader interface {
	Load(ctx context.Context, c *castai.ChartSource) (*chart.Chart, error)
}

func NewChartLoader

func NewChartLoader() ChartLoader

type Client

type Client interface {
	Install(ctx context.Context, opts InstallOptions) (*release.Release, error)
	Uninstall(opts UninstallOptions) (*release.UninstallReleaseResponse, error)
	Upgrade(ctx context.Context, opts UpgradeOptions) (*release.Release, error)
	Rollback(opts RollbackOptions) error
	GetRelease(opts GetReleaseOptions) (*release.Release, error)
}

func NewClient

func NewClient(log logrus.FieldLogger, loader ChartLoader, restConfig *rest.Config) Client

type ConfigurationGetter

type ConfigurationGetter interface {
	Get(namespace string) (*action.Configuration, error)
}

ConfigurationGetter wraps helm actions configuration setup for mocking in unit tests.

type GetReleaseOptions

type GetReleaseOptions struct {
	Namespace   string
	ReleaseName string
}

type InstallOptions

type InstallOptions struct {
	ChartSource     *castai.ChartSource
	Namespace       string
	CreateNamespace bool
	ReleaseName     string
	ValuesOverrides map[string]string
}

type RollbackOptions added in v0.7.0

type RollbackOptions struct {
	Namespace   string
	ReleaseName string
}

type UninstallOptions added in v0.8.0

type UninstallOptions struct {
	Namespace   string
	ReleaseName string
}

type UpgradeOptions

type UpgradeOptions struct {
	ChartSource     *castai.ChartSource
	Release         *release.Release
	ValuesOverrides map[string]string
	MaxHistory      int
}

Directories

Path Synopsis
Package mock_helm is a generated GoMock package.
Package mock_helm is a generated GoMock package.

Jump to

Keyboard shortcuts

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