helmclient

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 30 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeOverrideValues added in v1.5.0

func MergeOverrideValues(valuesYaml, defaultValues, overrideYaml, overrideValues string) (string, error)

MergeOverrideValues merge override yaml and override kvs defaultValues overrideYaml used for -f option overrideValues used for --set option

func NewClientFromRestConf

func NewClientFromRestConf(restConfig *rest.Config, ns string) (hc.Client, error)

NewClientFromRestConf returns a new Helm client constructed with the provided REST config options

Types

type ChartRepoClient added in v1.10.0

type ChartRepoClient struct {
	*cm.Client
}

func NewHelmChartRepoClient added in v1.10.0

func NewHelmChartRepoClient(url, userName, password string) (*ChartRepoClient, error)

func (*ChartRepoClient) DownloadAndExpand added in v1.10.0

func (client *ChartRepoClient) DownloadAndExpand(chartName, chartVersion, localPath string) error

DownloadAndExpand downloads chart from repo and expand chart files from tarball

func (*ChartRepoClient) DownloadChart added in v1.10.0

func (client *ChartRepoClient) DownloadChart(chartName, chartVersion, basePath string) error

func (*ChartRepoClient) FetchIndexYaml added in v1.10.0

func (client *ChartRepoClient) FetchIndexYaml() (*helm.Index, error)

FetchIndexYaml fetch index.yaml from remote chart repo

func (*ChartRepoClient) PushChart added in v1.10.0

func (client *ChartRepoClient) PushChart(chartPackagePath string, force bool) error

PushChart push chart to remote repo

type HelmClient

type HelmClient struct {
	*hc.HelmClient
}

func (*HelmClient) InstallOrUpgradeChart

func (hClient *HelmClient) InstallOrUpgradeChart(ctx context.Context, spec *hc.ChartSpec) (*release.Release, error)

InstallOrUpgradeChart install or upgrade helm chart, use the same rule with helm to determine weather to install or upgrade

type KV added in v1.5.0

type KV struct {
	Key   string      `json:"key"`
	Value interface{} `json:"value"`
}

Jump to

Keyboard shortcuts

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