helm

package
v0.8.15 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 24 Imported by: 1

Documentation

Overview

Package helm.

Copyright © 2023 zcubbs https://github.com/zcubbs

Package helm.

Copyright © 2023 zcubbs https://github.com/zcubbs

Index

Constants

View Source
const (
	TmpHelmScript    = "/tmp/get_helm.sh"
	InstallScriptUrl = "https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3"
)

Variables

This section is empty.

Functions

func GetAllReleases

func GetAllReleases(kubeconfig string) ([]*release.Release, error)

func InstallCli

func InstallCli(debug bool) error

func IsHelmInstalled

func IsHelmInstalled() (bool, error)

Types

type Chart

type Chart struct {
	ChartName       string
	ReleaseName     string
	RepoName        string
	Values          map[string]string
	ValuesFiles     []string
	Debug           bool
	CreateNamespace bool
	Upgrade         bool
}

type Client added in v0.8.0

type Client struct {
	Settings *cli.EnvSettings
}

func NewClient added in v0.8.0

func NewClient() *Client

func (*Client) InstallChart added in v0.8.0

func (c *Client) InstallChart(chartInput Chart) error

func (*Client) RepoAdd added in v0.8.0

func (c *Client) RepoAdd(name, url string) error

RepoAdd adds repo with given name and url

func (*Client) RepoAddAndUpdate added in v0.8.0

func (c *Client) RepoAddAndUpdate(name, url string) error

RepoAddAndUpdate adds repo with given name and url and updates charts for all helm repos

func (*Client) RepoUpdate added in v0.8.0

func (c *Client) RepoUpdate() error

RepoUpdate updates charts for all helm repos

func (*Client) UninstallChart added in v0.8.0

func (c *Client) UninstallChart(name string) error

UninstallChart uninstalls a helm chart

Jump to

Keyboard shortcuts

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