helm

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRelease

func NewRelease(releaseName string, namespace string, chart *chart.Chart, values map[string]interface{}) *rspb.Release

func OpenChart

func OpenChart(settings *cli.EnvSettings, chartPathOptions *action.ChartPathOptions, name string) (*chart.Chart, error)

func SearchRepo

func SearchRepo(ctx context.Context, query string) ([]string, error)

Types

type CapabilityRetriever

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

func NewCapabilityRetriever

func NewCapabilityRetriever(cachedDiscoveryClient discovery.CachedDiscoveryInterface) *CapabilityRetriever

func (*CapabilityRetriever) GetCapabilities

func (c *CapabilityRetriever) GetCapabilities() (*chartutil.Capabilities, error)

capabilities builds a Capabilities from discovery information.

type ChartSource

type ChartSource int
const (
	LocalChart ChartSource = iota
	RemoteChart
	Invalid
)

func ParseChartArgument

func ParseChartArgument(name string) (ChartSource, []string)

type HelmReleaseClient

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

func NewForConfig

func NewForConfig(secretClient v1.SecretInterface) (*HelmReleaseClient, error)

func (*HelmReleaseClient) CreateNewRelease

func (r *HelmReleaseClient) CreateNewRelease(
	releaseName string,
	namespace string,
	chart *chart.Chart,
	values map[string]interface{},
) (*rspb.Release, error)

createRelease creates a new release object

func (*HelmReleaseClient) GetRelease

func (r *HelmReleaseClient) GetRelease(name string) (*rspb.Release, error)

Find latest release for name

func (*HelmReleaseClient) ListReleases

func (r *HelmReleaseClient) ListReleases() ([]*rspb.Release, error)

func (*HelmReleaseClient) PurgeRelease

func (r *HelmReleaseClient) PurgeRelease(name string) error

Remove release release data (after uninstalling release)

func (*HelmReleaseClient) ReplaceRelease

func (r *HelmReleaseClient) ReplaceRelease(rel *rspb.Release) error

replaceRelease replaces an older release with this one

This allows us to re-use names by superseding an existing release with a new one

func (*HelmReleaseClient) UpdateRelease

func (r *HelmReleaseClient) UpdateRelease(release *rspb.Release) error

Update exising release (eg update status)

Jump to

Keyboard shortcuts

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