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
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
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 (*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