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: 0

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