helm

package
v0.6.1-r2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChartPathByName added in v0.5.1

func GetChartPathByName(chart string) string

func GetStatus

func GetStatus(cfg *action.Configuration, releaseName string) (release.Status, error)

func GetValues

func GetValues(cfg *action.Configuration, releaseName string) (map[string]interface{}, error)

func Install

func Install(cfg *action.Configuration, request ChartRequest) error

func NeedUpdate

func NeedUpdate(status release.Status) bool

func ReleaseExist

func ReleaseExist(cfg *action.Configuration, releaseName string) (bool, error)

func SetDefaultClient added in v0.2.3

func SetDefaultClient(client Client)

SetDefaultClient sets the default client

func Uninstall

func Uninstall(cfg *action.Configuration, releaseName string) error

func Update

func Update(cfg *action.Configuration, request ChartRequest) error

func Upgrade

func Upgrade(cfg *action.Configuration, request ChartRequest) error

Types

type ChartRequest

type ChartRequest struct {
	ReleaseName string
	Namespace   string
	Chart       string
	Values      map[string]interface{}
}

func GetChartRequest added in v0.5.1

func GetChartRequest(mc v1beta1.Milvus, dep values.DependencyKind, chart string) ChartRequest

type Client added in v0.2.3

type Client interface {
	GetStatus(cfg *action.Configuration, releaseName string) (release.Status, error)
	GetValues(cfg *action.Configuration, releaseName string) (map[string]interface{}, error)
	ReleaseExist(cfg *action.Configuration, releaseName string) (bool, error)
	Upgrade(cfg *action.Configuration, request ChartRequest) error
	Update(cfg *action.Configuration, request ChartRequest) error
	Install(cfg *action.Configuration, request ChartRequest) error
	Uninstall(cfg *action.Configuration, releaseName string) error
}

Client interface of helm

type LocalClient added in v0.2.3

type LocalClient struct{}

LocalClient is the local implementation of the Client interface.

func (*LocalClient) GetStatus added in v0.2.3

func (d *LocalClient) GetStatus(cfg *action.Configuration, releaseName string) (release.Status, error)

func (*LocalClient) GetValues added in v0.2.3

func (d *LocalClient) GetValues(cfg *action.Configuration, releaseName string) (map[string]interface{}, error)

func (*LocalClient) Install added in v0.2.3

func (d *LocalClient) Install(cfg *action.Configuration, request ChartRequest) error

func (*LocalClient) ReleaseExist added in v0.2.3

func (d *LocalClient) ReleaseExist(cfg *action.Configuration, releaseName string) (bool, error)

func (*LocalClient) Uninstall added in v0.2.3

func (d *LocalClient) Uninstall(cfg *action.Configuration, releaseName string) error

func (*LocalClient) Update added in v0.2.3

func (d *LocalClient) Update(cfg *action.Configuration, request ChartRequest) error

func (*LocalClient) Upgrade added in v0.2.3

func (d *LocalClient) Upgrade(cfg *action.Configuration, request ChartRequest) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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