helmfiles

package
v0.2.111 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SpitChartName added in v0.2.80

func SpitChartName(name string) (string, string)

SpitChartName splits the chart name into prefix and local name

Types

type ChartDetails added in v0.2.80

type ChartDetails struct {
	Namespace   string
	Chart       string
	Repository  string
	Version     string
	ReleaseName string
	Values      []string
	UpdateOnly  bool
	Prefixes    *versionstream.RepositoryPrefixes
}

ChartDetails the chart options when adding/updating charts

func NewChartDetails added in v0.2.80

func NewChartDetails(helmState *state.HelmState, rel *state.ReleaseSpec, prefixes *versionstream.RepositoryPrefixes) *ChartDetails

NewChartDetails return new add chart options from an existing release

func (*ChartDetails) Add added in v0.2.80

func (o *ChartDetails) Add(helmState *state.HelmState) (bool, error)

Add adds or updates the chart details in the helm state

func (*ChartDetails) String added in v0.2.80

func (o *ChartDetails) String() string

String returns the string representation of the chart options

type Editor added in v0.2.80

type Editor struct {
	// contains filtered or unexported fields
}

Editor an editor of helmfiles

func NewEditor added in v0.2.80

func NewEditor(dir string, helmfiles []Helmfile) (*Editor, error)

NewEditor creates a new editor

func (*Editor) AddChart added in v0.2.80

func (e *Editor) AddChart(opts *ChartDetails) error

ChartDetails adds a chart to the right helmfile for the given namespace

func (*Editor) Save added in v0.2.80

func (e *Editor) Save() error

Save saves any modified files

type Helmfile

type Helmfile struct {
	Filepath           string
	RelativePathToRoot string
}

func GatherHelmfiles

func GatherHelmfiles(helmfile, dir string) ([]Helmfile, error)

GatherHelmfiles gathers the helmfiles from the given file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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