actions

package
v0.0.0-...-ac6872c Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrReleaseNotFound         = errors.New("release: not found")
	ErrReleaseRevisionNotFound = errors.New("revision not found for provided release")
)

Functions

func DynamicClient

func DynamicClient(conf *rest.Config) (dynamic.Interface, error)

func FetchIndexFile

func FetchIndexFile(client dynamic.Interface, corev1Client corev1.CoreV1Interface, defaultRepoCACerts []byte) (*repo.IndexFile, error)

func GetActionConfigurations

func GetActionConfigurations(host, ns, token string, transport *http.RoundTripper) *action.Configuration

func GetChart

func GetChart(url string, conf *action.Configuration) (*chart.Chart, error)

func GetRelease

func GetRelease(releaseName string, conf *action.Configuration) (*release.Release, error)

func GetReleaseHistory

func GetReleaseHistory(name string, conf *action.Configuration) ([]*release.Release, error)

func InstallChart

func InstallChart(ns, name, url string, vals map[string]interface{}, conf *action.Configuration) (*release.Release, error)

func ListReleases

func ListReleases(conf *action.Configuration) ([]*release.Release, error)

func RenderManifests

func RenderManifests(name string, url string, vals map[string]interface{}, conf *action.Configuration) (string, error)

func RollbackRelease

func RollbackRelease(releaseName string, revision int, conf *action.Configuration) (*release.Release, error)

func UninstallRelease

func UninstallRelease(name string, conf *action.Configuration) (*release.UninstallReleaseResponse, error)

func UpgradeRelease

func UpgradeRelease(ns, name, url string, vals map[string]interface{}, conf *action.Configuration) (*release.Release, error)

Types

type HelmConfig

type HelmConfig struct {
	Name    string
	Url     string
	CACert  []byte
	TLSCert []byte
	TLSKey  []byte
}

type HelmConfigGetter

type HelmConfigGetter struct {
	Client     dynamic.Interface
	CoreClient corev1.CoreV1Interface

	DefaultRepoCACertificate []byte
}

func (HelmConfigGetter) ConfigMapValue

func (b HelmConfigGetter) ConfigMapValue(name string, dataField string) ([]byte, error)

func (HelmConfigGetter) Get

func (b HelmConfigGetter) Get(caCert, tlsCert, tlsKey []byte) (*tls.Config, error)

func (HelmConfigGetter) HttpClient

func (b HelmConfigGetter) HttpClient(helmConfig *HelmConfig) (*http.Client, error)

func (HelmConfigGetter) IndexFile

func (b HelmConfigGetter) IndexFile(helmConfig *HelmConfig) (*repo.IndexFile, error)

func (HelmConfigGetter) IndexFiles

func (b HelmConfigGetter) IndexFiles(helmConfigs []*HelmConfig) []*repo.IndexFile

func (*HelmConfigGetter) List

func (b *HelmConfigGetter) List() ([]*HelmConfig, error)

func (HelmConfigGetter) MergeIndexFiles

func (b HelmConfigGetter) MergeIndexFiles(files ...*repo.IndexFile) *repo.IndexFile

func (HelmConfigGetter) SecretValue

func (b HelmConfigGetter) SecretValue(name string, dataField string) ([]byte, error)

type TLSConfigGetter

type TLSConfigGetter interface {
	Get() (*tls.Config, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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