release

package
v0.0.0-...-c42b1bb Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrChartGitPathMissing = "Chart deploy configuration (%s) has empty Chart git path"
)

Functions

func GetReleaseName

func GetReleaseName(fhr ifv1.FluxHelmRelease) 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 Config

type Config struct {
	ChartsPath string
}

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, config Config) *Release

New creates a new Release instance.

func (*Release) Delete

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

Delete purges a Chart release

func (*Release) GetCurrent

func (r *Release) GetCurrent() (map[string][]DeployInfo, error)

GetCurrent provides Chart releases (stored in tiller ConfigMaps)

output:
				map[namespace][release name] = nil

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(repoDir, releaseName string, fhr ifv1.FluxHelmRelease, action Action, opts InstallOptions) (*hapi_release.Release, error)

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

type Releaser

type Releaser interface {
	GetCurrent() (map[string][]DeployInfo, error)
	GetDeployedRelease(name string) (*hapi_release.Release, error)
	Install(dir string, releaseName string, fhr ifv1.FluxHelmRelease, 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