helmfiles

package
v0.22.7 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRepository added in v0.22.0

func AddRepository(helmState *state.HelmState, prefix, repositoryURL string, prefixes *versionstream.RepositoryPrefixes) (string, error)

AddRepository ensures that the helm repository for the prefix exists in the helmstate. For it to succeed either repositoryUrl needs to be set or the prefix exists in prefixes.

func MatchesChartName added in v0.3.4

func MatchesChartName(releaseChart, name string) bool

MatchesChartName if name has a prefix then match on prefix and name otherwise just match on the local name only

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) Delete added in v0.3.4

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

Delete removes the releases for the given details from the given 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

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

func (*Editor) DeleteChart added in v0.3.4

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

DeleteChart 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