action

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2015 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package action provides implementations for each Helm command.

This is not intended to be a stand-alone library, as many of the commands will write to output, and even os.Exit when things go wrong.

Index

Constants

View Source
const CacheChartPath = "cache/charts"
View Source
const CachePath = "cache"

CachePath is the suffix for the cache.

View Source
const Configfile = "config.yaml"
View Source
const DefaultNS = "default"
View Source
const WorkspaceChartPath = "workspace/charts"
View Source
const WorkspacePath = "workspace"

Variables

This section is empty.

Functions

func AddRepo

func AddRepo(homedir, name, repository string)

AddRepo adds a repo to the list of repositories.

func AltInstall

func AltInstall(chartName, cachedir, home, namespace string, force bool, dryRun bool)

AltInstall allows loading a chart from the current directory.

It does not directly support chart tables (repos).

func CheckLatest

func CheckLatest(version string)

checklatest checks whether this version of Helm is the latest version.

This does not ensure that this is the latest. If a newer version is found, this generates a message indicating that.

The passed-in version is the base version that will be checked against the remote release list.

func Create

func Create(chartName, homeDir string)

Create a chart

- chartName being created - homeDir is the helm home directory for the user

func DeleteRepo

func DeleteRepo(homedir, name string)

DeleteRepo deletes a repository.

func Edit

func Edit(chartName, homeDir string)

Edit charts using the shell-defined $EDITOR

- chartName being edited - homeDir is the helm home directory for the user

func Fetch

func Fetch(chartName, lname, homedir string)

Fetch gets a chart from the source repo and copies to the workdir.

- chartName is the source - lname is the local name for that chart (chart-name); if blank, it is set to the chart. - homedir is the home directory for the user

func Info

func Info(chartName, homedir, format string)

Print information about a chart

- chartName to display - homeDir is the helm home directory for the user - format is a optional Go template

func Install

func Install(chartName, home, namespace string, force bool, dryRun bool)

Install loads a chart into Kubernetes.

If the chart is not found in the workspace, it is fetched and then installed.

During install, manifests are sent to Kubernetes in the following order:

  • Namespaces
  • Secrets
  • Volumes
  • Services
  • Pods
  • ReplicationControllers

func List

func List(homedir string)

List lists all of the local charts.

func ListRepos

func ListRepos(homedir string)

ListRepos lists the repositories.

func PrintREADME

func PrintREADME(chart, home string)

PrintREADME prints the README file (if it exists) to the console.

func Publish

func Publish(chartName, homeDir string, force bool)

Publish a chart from the workspace to the cache directory

- chartName being published - homeDir is the helm home directory for the user - force publishing even if the chart directory already exists

func Remove

func Remove(chart string, homedir string)

Remove removes a chart from the workdir.

- chart is the source - homedir is the home directory for the user

func Search(term, homedir string)

Search looks for packages with 'term' in their name.

func Target

func Target()

Target displays information about the cluster

func Uninstall

func Uninstall(chartName, home, namespace string)

Uninstall removes a chart from Kubernetes.

Manifests are removed from Kubernetes in the following order:

  • Services (to shut down traffic)
  • Pods (which can be part of RCs)
  • ReplicationControllers
  • Volumes
  • Secrets
  • Namespaces

func Update

func Update(home string)

Update fetches the remote repo into the home directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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