helm

package
v0.54.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 26 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(log logrus.FieldLogger) 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

type RollbackOptions struct {
	Namespace   string
	ReleaseName string
}

type UninstallOptions

type UninstallOptions struct {
	Namespace   string
	ReleaseName string
}

type UpgradeOptions

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

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