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
- func AddRepo(homedir, name, repository string)
- func AltInstall(chartName, cachedir, home, namespace string, force bool, dryRun bool)
- func CheckLatest(version string)
- func Create(chartName, homeDir string)
- func DeleteRepo(homedir, name string)
- func Edit(chartName, homeDir string)
- func Fetch(chartName, lname, homedir string)
- func Info(chartName, homedir, format string)
- func Install(chartName, home, namespace string, force bool, dryRun bool)
- func List(homedir string)
- func ListRepos(homedir string)
- func PrintREADME(chart, home string)
- func Publish(chartName, homeDir string, force bool)
- func Remove(chart string, homedir string)
- func Search(term, homedir string)
- func Target()
- func Uninstall(chartName, home, namespace string)
- func Update(home string)
Constants ¶
const CacheChartPath = "cache/charts"
const CachePath = "cache"
CachePath is the suffix for the cache.
const Configfile = "config.yaml"
const DefaultNS = "default"
const WorkspaceChartPath = "workspace/charts"
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 ¶
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 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 ¶
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 PrintREADME ¶
func PrintREADME(chart, home string)
PrintREADME prints the README file (if it exists) to the console.
func Publish ¶
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 ¶
Remove removes a chart from the workdir.
- chart is the source - homedir is the home directory for the user
func Search ¶
func Search(term, homedir string)
Search looks for packages with 'term' in their name.
Types ¶
This section is empty.