helm

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package helm handles Helm-related operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChartFromAssets

func ChartFromAssets(location string) (*chart.Chart, error)

ChartFromAssets finds a Helm chart in the assets at location, creates a chart.Chart struct from the chart and returns a pointer to it.

func GetHistory added in v0.9.0

func GetHistory(client HistoryClient, name string, max int) ([]*release.Release, error)

GetHistory returns at most max elements of the Helm history in descending version order, that is, the first element returned is the newest version of the release.

See https://github.com/helm/helm/blob/041ce5a2c17a58be0fcd5f5e16fb3e7e95fea622/cmd/helm/history.go#L115-L135. When helm exposes this in the API we can get rid of this.

Types

type HistoryClient added in v0.9.0

type HistoryClient interface {
	Run(name string) ([]*release.Release, error)
}

HistoryClient allows mocking for tests.

type LokomotiveChart

type LokomotiveChart struct {
	// The name of the chart.
	Name string
	// The namespace into which the chart should be deployed.
	Namespace string
}

LokomotiveChart represents a Helm chart belonging to a Lokomotive component or control plane element.

Jump to

Keyboard shortcuts

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