helm

package
v1.5.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: Apache-2.0 Imports: 38 Imported by: 1

Documentation

Index

Constants

View Source
const (
	VelaDebugLog = "VELA_DEBUG"
)

VelaDebugLog defines an ENV to set vela helm install log to be debug

Variables

This section is empty.

Functions

func AddHelmRepository

func AddHelmRepository(name, url, username, password, certFile, keyFile, caFile string, insecureSkipTLSverify bool, out io.Writer) error

AddHelmRepository add helm repo

func GetCRDFromChart added in v1.2.3

func GetCRDFromChart(chart *chart.Chart) []*crdv1.CustomResourceDefinition

GetCRDFromChart get crd from helm chart

func GetChart

func GetChart(client *action.Install, name string) (*chart.Chart, error)

GetChart will locate chart

func GetDeploymentsFromManifest added in v1.2.3

func GetDeploymentsFromManifest(helmManifest string) []*appsv1.Deployment

GetDeploymentsFromManifest get deployment from helm manifest

func GetHelmRelease

func GetHelmRelease(ns string) ([]*release.Release, error)

GetHelmRelease will get helm release

func GetHelmRepositoryList

func GetHelmRepositoryList() []*repo.Entry

GetHelmRepositoryList get the helm repo list from default setting

func Install

func Install(ioStreams cmdutil.IOStreams, repoName, repoURL, chartName, version, namespace, releaseName string,
	vals map[string]interface{}) error

Install will install helm chart

func InstallHelmChart added in v0.1.1

func InstallHelmChart(ioStreams cmdutil.IOStreams, c types.Chart) error

InstallHelmChart will install helm chart from types.Chart

func IsHelmReleaseRunning

func IsHelmReleaseRunning(releaseName, chartName, ns string, streams cmdutil.IOStreams) bool

IsHelmReleaseRunning check helm release running

func IsHelmRepositoryExist

func IsHelmRepositoryExist(name, url string) bool

IsHelmRepositoryExist will check help repo exists

func NewHelmInstall

func NewHelmInstall(version, namespace, releaseName string) (*action.Install, error)

NewHelmInstall will create a install client for helm install

func NewHelmUninstall

func NewHelmUninstall(namespace string) (*action.Uninstall, error)

NewHelmUninstall will create a helm uninstall client

func SetHTTPOption added in v1.5.0

func SetHTTPOption(ctx context.Context, k8sClient client.Client, secretRef types2.NamespacedName) (*common.HTTPOption, error)

SetHTTPOption will read username and password from secret return a httpOption that contain these info.

func Uninstall

func Uninstall(ioStreams cmdutil.IOStreams, chartName, namespace, releaseName string) error

Uninstall will uninstall helm chart

Types

type Helper added in v1.2.3

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

Helper provides helper functions for common Helm operations

func NewHelper added in v1.2.3

func NewHelper() *Helper

NewHelper creates a Helper

func NewHelperWithCache added in v1.3.0

func NewHelperWithCache() *Helper

NewHelperWithCache creates a Helper with cache usually used by apiserver

func (*Helper) GetIndexInfo added in v1.3.0

func (h *Helper) GetIndexInfo(repoURL string, skipCache bool, opts *common.HTTPOption) (*repo.IndexFile, error)

GetIndexInfo get index.yaml form given repo url

func (*Helper) GetValuesFromChart added in v1.3.0

func (h *Helper) GetValuesFromChart(repoURL string, chartName string, version string, skipCache bool, opts *common.HTTPOption) (map[string]interface{}, error)

GetValuesFromChart will extract the parameter from a helm chart

func (*Helper) ListChartsFromRepo added in v1.3.0

func (h *Helper) ListChartsFromRepo(repoURL string, skipCache bool, opts *common.HTTPOption) ([]string, error)

ListChartsFromRepo list available helm charts in a repo

func (*Helper) ListVersions added in v1.2.3

func (h *Helper) ListVersions(repoURL string, chartName string, skipCache bool, opts *common.HTTPOption) (repo.ChartVersions, error)

ListVersions list available versions from repo

func (*Helper) LoadCharts added in v1.2.3

func (h *Helper) LoadCharts(chartRepoURL string, opts *common.HTTPOption) (*chart.Chart, error)

LoadCharts load helm chart from local or remote

func (*Helper) UninstallRelease added in v1.2.3

func (h *Helper) UninstallRelease(releaseName, namespace string, config *rest.Config, showDetail bool, logging cmdutil.IOStreams) error

UninstallRelease uninstalls the provided release

func (*Helper) UpgradeChart added in v1.2.3

func (h *Helper) UpgradeChart(ch *chart.Chart, releaseName, namespace string, values map[string]interface{}, config UpgradeChartOptions) (*release.Release, error)

UpgradeChart install or upgrade helm chart

type UpgradeChartOptions added in v1.2.3

type UpgradeChartOptions struct {
	Config      *rest.Config
	Detail      bool
	Logging     cmdutil.IOStreams
	Wait        bool
	ReuseValues bool
}

UpgradeChartOptions options for upgrade chart

Jump to

Keyboard shortcuts

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