installer

package
v0.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ReleaseName = "draft"

ReleaseName is the name of the release used when installing/uninstalling draft via helm.

Variables

View Source
var DefaultChartFiles = []*chartutil.BufferedFile{
	{
		Name: chartutil.ChartfileName,
		Data: []byte(fmt.Sprintf(draftChart, version.Release)),
	},
	{
		Name: chartutil.ValuesfileName,
		Data: []byte(fmt.Sprintf(draftValues, version.Release)),
	},
	{
		Name: chartutil.IgnorefileName,
		Data: []byte(draftIgnore),
	},
	{
		Name: path.Join(chartutil.TemplatesDir, chartutil.DeploymentName),
		Data: []byte(draftDeployment),
	},
	{
		Name: path.Join(chartutil.TemplatesDir, chartutil.ServiceName),
		Data: []byte(draftService),
	},
	{
		Name: path.Join(chartutil.TemplatesDir, chartutil.NotesName),
		Data: []byte(draftNotes),
	},
	{
		Name: path.Join(chartutil.TemplatesDir, chartutil.HelpersName),
		Data: []byte(draftHelpers),
	},
}

DefaultChartFiles represent the default chart files relevant to a Draft chart installation

Functions

func Install

func Install(client *helm.Client, namespace string, rawChartConfig string) error

Install uses the helm client to install Draftd with the given config.

Returns an error if the command failed.

func Uninstall added in v0.8.0

func Uninstall(client *helm.Client) error

Uninstall uses the helm client to uninstall Draftd with the given config.

Returns an error if the command failed.

func Upgrade

func Upgrade(client *helm.Client, chartConfig *chart.Config) error

Upgrade uses the helm client to upgrade Draftd using the given config.

Returns an error if the command failed.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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