Documentation
¶
Index ¶
- type HelmState
- func (state *HelmState) Clean() []error
- func (state *HelmState) DeleteReleases(helm helmexec.Interface) []error
- func (state *HelmState) DiffReleases(helm helmexec.Interface, additionalValues []string, workerLimit int) []error
- func (state *HelmState) FilterReleases(labels []string) error
- func (state *HelmState) ReleaseStatuses(helm helmexec.Interface, workerLimit int) []error
- func (state *HelmState) SyncReleases(helm helmexec.Interface, additionalValues []string, workerLimit int) []error
- func (state *HelmState) SyncRepos(helm helmexec.Interface) []error
- func (state *HelmState) UpdateDeps(helm helmexec.Interface) []error
- type LabelFilter
- type ReleaseFilter
- type ReleaseSpec
- type RepositorySpec
- type SetValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HelmState ¶
type HelmState struct {
BaseChartPath string
Context string `yaml:"context"`
DeprecatedReleases []ReleaseSpec `yaml:"charts"`
Namespace string `yaml:"namespace"`
Repositories []RepositorySpec `yaml:"repositories"`
Releases []ReleaseSpec `yaml:"releases"`
}
HelmState structure for the helmfile
func ReadFromFile ¶
ReadFromFile loads the helmfile from disk and processes the template
func (*HelmState) DeleteReleases ¶
DeleteReleases wrapper for executing helm delete on the releases
func (*HelmState) DiffReleases ¶
func (state *HelmState) DiffReleases(helm helmexec.Interface, additionalValues []string, workerLimit int) []error
DiffReleases wrapper for executing helm diff on the releases
func (*HelmState) FilterReleases ¶
FilterReleases allows for the execution of helm commands against a subset of the releases in the helmfile.
func (*HelmState) ReleaseStatuses ¶ added in v0.14.0
func (*HelmState) SyncReleases ¶
func (state *HelmState) SyncReleases(helm helmexec.Interface, additionalValues []string, workerLimit int) []error
SyncReleases wrapper for executing helm upgrade on the releases
type LabelFilter ¶
type LabelFilter struct {
// contains filtered or unexported fields
}
LabelFilter matches a release with the given positive lables. Negative labels invert the match for cases such as tier!=backend
func ParseLabels ¶
func ParseLabels(l string) (LabelFilter, error)
ParseLabels takes a label in the form foo=bar,baz!=bat and returns a LabelFilter that will match the labels
func (LabelFilter) Match ¶
func (l LabelFilter) Match(r ReleaseSpec) bool
Match will match a release that has the same labels as the filter
type ReleaseFilter ¶
type ReleaseFilter interface {
// Match returns true if the ReleaseSpec matches the Filter
Match(r ReleaseSpec) bool
}
ReleaseFilter is used to determine if a given release should be used during helmfile execution
type ReleaseSpec ¶
type ReleaseSpec struct {
// Chart is the name of the chart being installed to create this release
Chart string `yaml:"chart"`
Version string `yaml:"version"`
Verify bool `yaml:"verify"`
// Name is the name of this release
Name string `yaml:"name"`
Namespace string `yaml:"namespace"`
Labels map[string]string `yaml:"labels"`
Values []string `yaml:"values"`
Secrets []string `yaml:"secrets"`
SetValues []SetValue `yaml:"set"`
// The 'env' section is not really necessary any longer, as 'set' would now provide the same functionality
EnvValues []SetValue `yaml:"env"`
// contains filtered or unexported fields
}
ReleaseSpec defines the structure of a helm release