helm

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IncTypes = struct {
	Major IncType
	Minor IncType
	Patch IncType
	None  IncType
}{
	"major",
	"minor",
	"patch",
	"none",
}

IncTypes enumerates available IncType.

Functions

func GetChartName added in v1.1.0

func GetChartName(chartPath string) (string, error)

GetChartName returns the name of the chart in the given path or an error.

func GetHelmHome

func GetHelmHome() helmpath.Home

GetHelmHome returns the HELM_HOME path.

func IncrementChartVersion

func IncrementChartVersion(chartPath string, incType IncType) error

IncrementChart version increments the patch version of the Chart.

func UpdateDependencies

func UpdateDependencies(chartPath string, reqsToUpdate []*Result, indent int, helmSettings *helm_env.EnvSettings) error

UpdateDependencies updates the dependencies of the given chart.

Types

type Filter added in v1.1.0

type Filter struct {
	Repositories,
	DependencyNames []string
}

Filter for dependencies.

func (*Filter) FilterDependencies added in v1.1.0

func (f *Filter) FilterDependencies(dependencies []*chartutil.Dependency) []*chartutil.Dependency

FilterDependencies ...

type IncType added in v1.0.4

type IncType string

IncType is one of IncTypes.

func GetIncType added in v1.2.0

func GetIncType(oldVersion, newVersion *semver.Version) IncType

GetIncType returns IncType based on which segment of the Version was changed.

func (IncType) IsGreater added in v1.2.0

func (i IncType) IsGreater(inc IncType) bool

IsGreater check whether the given IncType is greater.

type Result

type Result struct {
	*chartutil.Dependency

	CurrentVersion,
	LatestVersion *semver.Version
}

Result ...

func ListOutdatedDependencies

func ListOutdatedDependencies(chartPath string, helmSettings *helm_env.EnvSettings, dependencyFilter *Filter) ([]*Result, error)

ListOutdatedDependencies returns a list of outdated dependencies of the given chart.

Jump to

Keyboard shortcuts

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