release

package
v0.0.0-...-d1b097e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReleaseName

func GetReleaseName(fhr flux_v1beta1.HelmRelease) string

GetReleaseName either retrieves the release name from the Custom Resource or constructs a new one in the form : $Namespace-$CustomResourceName

Types

type Action

type Action string
const (
	InstallAction Action = "CREATE"
	UpgradeAction Action = "UPDATE"
)

type DeployInfo

type DeployInfo struct {
	Name string
}

type InstallOptions

type InstallOptions struct {
	DryRun    bool
	ReuseName bool
}

type Release

type Release struct {
	HelmClient *k8shelm.Client
	// contains filtered or unexported fields
}

Release contains clients needed to provide functionality related to helm releases

func New

func New(logger log.Logger, helmClient *k8shelm.Client) *Release

New creates a new Release instance.

func (*Release) Delete

func (r *Release) Delete(name string) error

Delete purges a Chart release

func (*Release) GetDeployedRelease

func (r *Release) GetDeployedRelease(name string) (*hapi_release.Release, error)

GetDeployedRelease returns a release with Deployed status

func (*Release) Install

func (r *Release) Install(chartPath, releaseName string, fhr flux_v1beta1.HelmRelease, action Action, opts InstallOptions, kubeClient *kubernetes.Clientset) (*hapi_release.Release, error)

Install performs a Chart release given the directory containing the charts, and the HelmRelease specifying the release. Depending on the release type, this is either a new release, or an upgrade of an existing one.

TODO(michael): cloneDir is only relevant if installing from git; either split this procedure into two varieties, or make it more general and calculate the path to the chart in the caller.

type Releaser

type Releaser interface {
	GetDeployedRelease(name string) (*hapi_release.Release, error)
	Install(dir string, releaseName string, fhr flux_v1beta1.HelmRelease, action Action, opts InstallOptions) (*hapi_release.Release, error)
}

Jump to

Keyboard shortcuts

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