helmutil

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 17 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"
)

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, targetVersion string) (string, error)

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

func ExtractChartRelease

func ExtractChartRelease(saved, targetVersion string) (string, error)

func Install

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

func ListInstallations

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

func MergeValuesFile

func MergeValuesFile(cfg *action.Configuration, settings *cli.EnvSettings, chartDir, targetVersion, 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(targetVersion string) (io.Reader, error)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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