helm

package
v0.0.0-...-29d3a8e Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveChartByte

func SaveChartByte(c *chart.Chart) ([]byte, error)

Types

type Client

type Client struct {
	*kube.Tunnel
	*helm.Client
}

Client encapsulates a Helm Client and a Tunnel for that client to interact with the Tiller pod

func NewClient

func NewClient(cfg *restclient.Config, kubeClient *kubernetes.Clientset) (*Client, error)

NewClient

func (*Client) FilterReleases

func (helmClient *Client) FilterReleases(regex string) ([]*release.Release, error)

Filter the releases what you want to find.

func (*Client) GetRelease

func (helmClient *Client) GetRelease(releaseName string) (*release.Release, error)

Find the release with its name, return the just only one.

func (*Client) GetReleaseByVersion

func (helmClient *Client) GetReleaseByVersion(releaseName string, version int32) (*rls.GetReleaseContentResponse, error)

GetReleaseByVersion returns the details of a helm release version.

func (*Client) InstallRelease

func (helmClient *Client) InstallRelease(namespace string, releaseName string, chartBytes []byte, raw string) (*rls.InstallReleaseResponse, error)

Install a release.

func (*Client) KeepLive

func (helmClient *Client) KeepLive() error

func (*Client) Ping

func (helmClient *Client) Ping()

func (*Client) UninstallRelease

func (helmClient *Client) UninstallRelease(rlsName string) (*rls.UninstallReleaseResponse, error)

Delete a release.

func (*Client) UpdateRelease

func (helmClient *Client) UpdateRelease(rlsName string, chartBytes []byte, raw string) (*rls.UpdateReleaseResponse, error)

Update a release.

type ReleaseNotFoundError

type ReleaseNotFoundError struct {
	HelmError error
}

ReleaseNotFoundError is returned when a Helm related operation is executed on a release (helm release) that doesn't exists

func (*ReleaseNotFoundError) Error

func (e *ReleaseNotFoundError) Error() string

Jump to

Keyboard shortcuts

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