helm

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Install(release string, chart *chart.Chart, values chartutil.Values) error
	Upgrade(release string, chart *chart.Chart, values chartutil.Values, install bool) error
	Uninstall(release string) error
}

Client is a Helm client

func NewClientForNamespace

func NewClientForNamespace(namespace string, options ...ClientOption) (Client, error)

NewClientForNamespace is a ClientFactory

type ClientFactory

type ClientFactory func(namespace string, options ...ClientOption) (Client, error)

ClientFactory provides an abstraction to create a new namespaced Client

type ClientOption

type ClientOption func(*client)

ClientOption defines a function types to apply options to the client configuration

func WithHelmDriver

func WithHelmDriver(driver string) ClientOption

WithHelmDriver set the storage helm driver (configmap`, `secret`, `memory`) of the client configuration

func WithLogger

func WithLogger(logger logr.Logger) ClientOption

WithLogger injects a logr.Logger to the client configuration

func WithMaxHistory added in v1.0.3

func WithMaxHistory(maxHistory int) ClientOption

WithMaxHistory limit the maximum number of revisions saved per release. Use 0 for no limit

Jump to

Keyboard shortcuts

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