release

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound is an error for not found release.
	ErrNotFound = driver.ErrReleaseNotFound

	// ErrFoundMultiple is an error for multiple releases found by name.
	ErrFoundMultiple = errors.New("found multiple releases o_0")

	// ErrDepFailed is an error thrown when dependency release fails.
	ErrDepFailed = errors.New("dependency failed")
)
View Source
var ErrSkipValues = errors.New("values have been skipped")

ErrSkipValues is returned when values cannot be used and are skipped.

Functions

This section is empty.

Types

type Chart added in v0.12.0

type Chart struct {
	action.ChartPathOptions `yaml:",inline"` //nolint:nolintlint
	Name                    string
}

Chart is structure for chart download options.

type Config

type Config interface {
	Uniq() uniqname.UniqName
	HandleDependencies([]Config)
	Sync() (*release.Release, error)
	NotifySuccess()
	NotifyFailed()
	DryRun(bool)
	ChartDepsUpd() error
	In([]Config) bool
	BuildValues(string, string) error
	Uninstall() (*release.UninstallReleaseResponse, error)
	Get() (*release.Release, error)
	List() (*release.Release, error)
	Rollback(int) error
	Status() (*release.Release, error)
	Name() string
	Namespace() string
	Chart() Chart
	DependsOn() []string
	Tags() []string
	Repo() string
	Values() []ValuesReference
	Logger() *log.Entry
}

Config is an interface to manage particular helm release.

func UnmarshalYAML added in v0.16.6

func UnmarshalYAML(node *yaml.Node) ([]Config, error)

UnmarshalYAML is an unmarshaller for gopkg.in/yaml.v3 to parse YAML into `Config` interface.

type Configs added in v0.19.1

type Configs []Config

Configs type of array Config.

func (*Configs) UnmarshalYAML added in v0.19.1

func (r *Configs) UnmarshalYAML(node *yaml.Node) error

UnmarshalYAML parse Config.

type ValuesReference added in v0.11.0

type ValuesReference struct {
	Src string `yaml:"src"`
	// contains filtered or unexported fields
}

ValuesReference is used to match source values file path and temporary.

func (*ValuesReference) Download added in v0.11.0

func (v *ValuesReference) Download() error

Download downloads values by source URL and places to destination path.

func (*ValuesReference) Get added in v0.12.0

func (v *ValuesReference) Get() string

Get returns destination path of values.

func (ValuesReference) MarshalYAML added in v0.12.0

func (v ValuesReference) MarshalYAML() (interface{}, error)

MarshalYAML is used to implement Marshaler interface of gopkg.in/yaml.v3.

func (*ValuesReference) SetUniq added in v0.12.5

func (v *ValuesReference) SetUniq(dir string, name uniqname.UniqName) *ValuesReference

SetUniq generates unique file path based on provided base directory, release uniqname and sha1 of source path.

func (*ValuesReference) SetViaRelease added in v0.12.0

func (v *ValuesReference) SetViaRelease(rel Config, dir, templater string) error

SetViaRelease downloads and templates values file. Returns ErrSkipValues if values cannot be downloaded or doesn't exist in local FS.

func (*ValuesReference) UnmarshalYAML added in v0.11.0

func (v *ValuesReference) UnmarshalYAML(node *yaml.Node) error

UnmarshalYAML is used to implement Unmarshaler interface of gopkg.in/yaml.v3.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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