helm

package
v0.0.0-...-144da03 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

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

func GetChartName(chartPath string) (string, error)

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

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) error

UpdateDependencies updates the dependencies of the given chart.

Types

type Filter

type Filter struct {
	Repositories,
	DependencyNames []string
}

Filter for dependencies.

func (*Filter) FilterDependencies

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

FilterDependencies ...

type IncType

type IncType string

IncType is one of IncTypes.

func GetIncType

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

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

func (IncType) IsGreater

func (i IncType) IsGreater(inc IncType) bool

IsGreater check whether the given IncType is greater.

type Requirements

type Requirements struct {
	Dependencies []*chart.Dependency `json:"dependencies,flow,inline"`
	// contains filtered or unexported fields
}

Requirements is a list of requirements for a chart.

Requirements are charts upon which this chart depends. This expresses developer intent.

type Result

type Result struct {
	*chart.Dependency
	CurrentVersion,
	LatestVersion *semver.Version
}

Result ...

func ListOutdatedDependencies

func ListOutdatedDependencies(chartPath string, settings *cli.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