Documentation ¶
Index ¶
- Constants
- func AddHelmRepository(name, url, username, password, certFile, keyFile, caFile string, ...) error
- func GetCRDFromChart(chart *chart.Chart) []*crdv1.CustomResourceDefinition
- func GetChart(client *action.Install, name string) (*chart.Chart, error)
- func GetDeploymentsFromManifest(helmManifest string) []*appsv1.Deployment
- func GetHelmRelease(ns string) ([]*release.Release, error)
- func GetHelmRepositoryList() []*repo.Entry
- func Install(ioStreams cmdutil.IOStreams, ...) error
- func InstallHelmChart(ioStreams cmdutil.IOStreams, c types.Chart) error
- func IsHelmReleaseRunning(releaseName, chartName, ns string, streams cmdutil.IOStreams) bool
- func IsHelmRepositoryExist(name, url string) bool
- func NewHelmInstall(version, namespace, releaseName string) (*action.Install, error)
- func NewHelmUninstall(namespace string) (*action.Uninstall, error)
- func Uninstall(ioStreams cmdutil.IOStreams, chartName, namespace, releaseName string) error
- type Helper
- func (h *Helper) ListVersions(repoURL string, chartName string) (repo.ChartVersions, error)
- func (h *Helper) LoadCharts(chartRepoURL string) (*chart.Chart, error)
- func (h *Helper) UninstallRelease(releaseName, namespace string, config *rest.Config, showDetail bool, ...) error
- func (h *Helper) UpgradeChart(ch *chart.Chart, releaseName, namespace string, values map[string]interface{}, ...) (*release.Release, error)
- type UpgradeChartOptions
Constants ¶
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 ¶
func GetCRDFromChart(chart *chart.Chart) []*crdv1.CustomResourceDefinition
GetCRDFromChart get crd from helm chart
func GetDeploymentsFromManifest ¶
func GetDeploymentsFromManifest(helmManifest string) []*appsv1.Deployment
GetDeploymentsFromManifest get deployment from helm manifest
func GetHelmRelease ¶
GetHelmRelease will get helm release
func GetHelmRepositoryList ¶
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 ¶
InstallHelmChart will install helm chart from types.Chart
func IsHelmReleaseRunning ¶
IsHelmReleaseRunning check helm release running
func IsHelmRepositoryExist ¶
IsHelmRepositoryExist will check help repo exists
func NewHelmInstall ¶
NewHelmInstall will create a install client for helm install
func NewHelmUninstall ¶
NewHelmUninstall will create a helm uninstall client
Types ¶
type Helper ¶
type Helper struct { }
Helper provides helper functions for common Helm operations
func (*Helper) ListVersions ¶
ListVersions list available versions from repo
func (*Helper) LoadCharts ¶
LoadCharts load helm chart from local or remote