helmutil

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManagedLabel      = "app.kubernetes.io/managed-by"
	ManagedLabelValue = "Helm"
	ReleaseAnnotation = "meta.helm.sh/release-name"

	StableK8ssandraRepoURL = "https://helm.k8ssandra.io/"
	// RepoName is the name of k8ssandra's helm repo chart
	K8ssandraRepoName = "k8ssandra"
)
View Source
const (
	AllSubCharts = "_"
)

Variables

This section is empty.

Functions

func ChartVersion

func ChartVersion(cfg *action.Configuration, releaseName string) (*chart.Chart, error)

ChartVersion gets the release's chart version or returns an error if it did not exist

func DownloadChartRelease

func DownloadChartRelease(repoName, repoURL, chartName, chartVersion string, options ...getter.Option) (string, error)

DownloadChartRelease fetches the k8ssandra target version and extracts it to a directory which path is returned

func ExtractChartRelease

func ExtractChartRelease(saved, repoName, chartName, chartVersion string) (string, error)

func GetChartTargetDir added in v0.3.0

func GetChartTargetDir(repoName, chartName string) (string, error)

func Install

func Install(cfg *action.Configuration, releaseName, path, namespace string, values map[string]interface{}, devel bool, skipCRDs bool, timeout time.Duration) (*release.Release, error)

func ListInstallations

func ListInstallations(cfg *action.Configuration) ([]*release.Release, error)

func MergeValuesFile

func MergeValuesFile(cfg *action.Configuration, settings *cli.EnvSettings, chartDir, chartVersion, chartName, releaseName string) (*os.File, error)

func Release

func Release(cfg *action.Configuration, releaseName string) (*release.Release, error)

func SetValues

func SetValues(cfg *action.Configuration, releaseName string) (map[string]interface{}, error)

SetValues returns the deployed Helm releases modified values

func Uninstall

func Uninstall(cfg *action.Configuration, releaseName string) (*release.UninstallReleaseResponse, error)

func UpgradeValues

func UpgradeValues(cfg *action.Configuration, chartDir, chartName, releaseName string, inputValues *os.File) (*release.Release, error)

func ValuesYaml

func ValuesYaml(chartVersion string) (io.Reader, error)

ValuesYaml fetches the chartVersion's values.yaml file for editing purposes

Types

type Upgrader added in v0.3.0

type Upgrader struct {
	// contains filtered or unexported fields
}

Upgrader is a utility to update the CRDs in a helm chart's pre-upgrade hook

func NewUpgrader added in v0.3.0

func NewUpgrader(c client.Client, repoName, repoURL, chartName string, subCharts []string) (*Upgrader, error)

NewUpgrader returns a new Upgrader client

func (*Upgrader) Upgrade added in v0.3.0

func (u *Upgrader) Upgrade(ctx context.Context, chartVersion string) ([]unstructured.Unstructured, error)

Upgrade installs the missing CRDs or updates them if they exists already

Jump to

Keyboard shortcuts

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