Documentation ¶
Index ¶
- Constants
- Variables
- func AskForConfirmation(s string) bool
- func FormatAsJson(releases []*HelmRelease) error
- func FormatAsTable(releases []*HelmRelease) error
- type App
- func (a *App) Apply(c ApplyConfigProvider) error
- func (a *App) CleanCacheDir(c ListConfigProvider) error
- func (a *App) Delete(c DeleteConfigProvider) error
- func (a *App) DeprecatedSyncCharts(c DeprecatedChartsConfigProvider) error
- func (a *App) Deps(c DepsConfigProvider) error
- func (a *App) Destroy(c DestroyConfigProvider) error
- func (a *App) Diff(c DiffConfigProvider) error
- func (a *App) Fetch(c FetchConfigProvider) error
- func (a *App) ForEachState(do func(*Run) (bool, []error), includeTransitiveNeeds bool, o ...LoadOption) error
- func (a *App) Lint(c LintConfigProvider) error
- func (a *App) ListReleases(c ListConfigProvider) error
- func (a *App) PrintState(c StateConfigProvider) error
- func (a *App) Repos(c ReposConfigProvider) error
- func (a *App) ShowCacheDir(c ListConfigProvider) error
- func (a *App) Status(c StatusesConfigProvider) error
- func (a *App) Sync(c SyncConfigProvider) error
- func (a *App) Template(c TemplateConfigProvider) error
- func (a *App) Test(c TestConfigProvider) error
- func (a *App) Wrap(converge func(*state.HelmState, helmexec.Interface) []error) ...
- func (a *App) WrapWithoutSelector(converge func(*state.HelmState, helmexec.Interface) []error) func(st *state.HelmState, helm helmexec.Interface) (bool, []error)
- func (a *App) WriteValues(c WriteValuesConfigProvider) error
- type ApplyConfigProvider
- type ConfigProvider
- type Context
- type DeleteConfigProvider
- type DeprecatedChartsConfigProvider
- type DepsConfigProvider
- type DestroyConfigProvider
- type DiffConfigProvider
- type Error
- type FetchConfigProvider
- type HelmRelease
- type LintConfigProvider
- type ListConfigProvider
- type LoadOption
- type LoadOpts
- type MultiError
- type NoMatchingHelmfileError
- type Opts
- type RenderOpts
- type ReposConfigProvider
- type Run
- type StateConfigProvider
- type StatusesConfigProvider
- type SyncConfigProvider
- type TemplateConfigProvider
- type TestConfigProvider
- type WriteValuesConfigProvider
Constants ¶
View Source
const ( DefaultHelmfile = "helmfile.yaml" DeprecatedHelmfile = "charts.yaml" DefaultHelmfileDirectory = "helmfile.d" ExperimentalEnvVar = "HELMFILE_EXPERIMENTAL" // environment variable for experimental features, expecting "true" lower case ExperimentalSelectorExplicit = "explicit-selector-inheritance" // value to remove default selector inheritance to sub-helmfiles and use the explicit one )
View Source
const (
DefaultHelmBinary = state.DefaultHelmBinary
)
Variables ¶
View Source
var ( SetReverse = func(r bool) func(o *LoadOpts) { return func(o *LoadOpts) { o.Reverse = r } } SetRetainValuesFiles = func(r bool) func(o *LoadOpts) { return func(o *LoadOpts) { o.RetainValuesFiles = true } } SetFilter = func(f bool) func(o *LoadOpts) { return func(o *LoadOpts) { o.Filter = f } } )
Functions ¶
func AskForConfirmation ¶
Copyright (c) 2017 Roland Singer [roland.singer@desertbit.com]
Shamelessly borrowed from @r0l1's awesome work that is available at https://gist.github.com/r0l1/3dcbb0c8f6cfe9c66ab8008f55f8f28b
func FormatAsJson ¶
func FormatAsJson(releases []*HelmRelease) error
func FormatAsTable ¶
func FormatAsTable(releases []*HelmRelease) error
Types ¶
type App ¶
type App struct { OverrideKubeContext string OverrideHelmBinary string Logger *zap.SugaredLogger Env string Namespace string Chart string Selectors []string Args string ValuesFiles []string Set map[string]interface{} FileOrDir string Description string Extra []string Writer io.Writer // contains filtered or unexported fields }
func New ¶
func New(conf ConfigProvider) *App
func NewWithHelmExtra ¶
func (*App) Apply ¶
func (a *App) Apply(c ApplyConfigProvider) error
func (*App) CleanCacheDir ¶
func (a *App) CleanCacheDir(c ListConfigProvider) error
func (*App) Delete ¶
func (a *App) Delete(c DeleteConfigProvider) error
func (*App) DeprecatedSyncCharts ¶
func (a *App) DeprecatedSyncCharts(c DeprecatedChartsConfigProvider) error
func (*App) Deps ¶
func (a *App) Deps(c DepsConfigProvider) error
func (*App) Destroy ¶
func (a *App) Destroy(c DestroyConfigProvider) error
func (*App) Diff ¶
func (a *App) Diff(c DiffConfigProvider) error
func (*App) Fetch ¶
func (a *App) Fetch(c FetchConfigProvider) error
func (*App) ForEachState ¶
func (*App) Lint ¶
func (a *App) Lint(c LintConfigProvider) error
func (*App) ListReleases ¶
func (a *App) ListReleases(c ListConfigProvider) error
func (*App) PrintState ¶
func (a *App) PrintState(c StateConfigProvider) error
func (*App) Repos ¶
func (a *App) Repos(c ReposConfigProvider) error
func (*App) ShowCacheDir ¶
func (a *App) ShowCacheDir(c ListConfigProvider) error
func (*App) Status ¶
func (a *App) Status(c StatusesConfigProvider) error
func (*App) Sync ¶
func (a *App) Sync(c SyncConfigProvider) error
func (*App) Template ¶
func (a *App) Template(c TemplateConfigProvider) error
func (*App) Test ¶
func (a *App) Test(c TestConfigProvider) error
func (*App) WrapWithoutSelector ¶
func (*App) WriteValues ¶
func (a *App) WriteValues(c WriteValuesConfigProvider) error
type ApplyConfigProvider ¶
type ApplyConfigProvider interface { Args() string Values() []string Set() []string SkipCRDs() bool SkipDeps() bool Wait() bool WaitForJobs() bool IncludeTests() bool Suppress() []string SuppressSecrets() bool ShowSecrets() bool SuppressDiff() bool DetailedExitcode() bool NoColor() bool Context() int DiffOutput() string RetainValuesFiles() bool Validate() bool SkipCleanup() bool SkipDiffOnInstall() bool SkipNeeds() bool IncludeNeeds() bool IncludeTransitiveNeeds() bool // contains filtered or unexported methods }
type ConfigProvider ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext() Context
func (Context) SyncReposOnce ¶
type DeleteConfigProvider ¶
type DepsConfigProvider ¶
type DestroyConfigProvider ¶
type DiffConfigProvider ¶
type DiffConfigProvider interface { Args() string Values() []string Set() []string Validate() bool SkipCRDs() bool SkipDeps() bool IncludeTests() bool Suppress() []string SuppressSecrets() bool ShowSecrets() bool SuppressDiff() bool SkipDiffOnInstall() bool SkipNeeds() bool IncludeNeeds() bool DetailedExitcode() bool NoColor() bool Context() int DiffOutput() string // contains filtered or unexported methods }
type FetchConfigProvider ¶
type HelmRelease ¶
type LintConfigProvider ¶
type ListConfigProvider ¶
type ListConfigProvider interface {
Output() string
}
type LoadOption ¶
type LoadOption func(o *LoadOpts)
type LoadOpts ¶
type MultiError ¶
type MultiError struct {
Errors []error
}
func (*MultiError) Error ¶
func (e *MultiError) Error() string
type NoMatchingHelmfileError ¶
type NoMatchingHelmfileError struct {
// contains filtered or unexported fields
}
func (*NoMatchingHelmfileError) Error ¶
func (e *NoMatchingHelmfileError) Error() string
type RenderOpts ¶
type RenderOpts struct { }
type ReposConfigProvider ¶
type Run ¶
type Run struct { ReleaseToChart map[state.PrepareChartKey]string Ask func(string) bool // contains filtered or unexported fields }
func (*Run) DeprecatedSyncCharts ¶
func (r *Run) DeprecatedSyncCharts(c DeprecatedChartsConfigProvider) []error
func (*Run) Deps ¶
func (r *Run) Deps(c DepsConfigProvider) []error
func (*Run) Repos ¶
func (r *Run) Repos(c ReposConfigProvider) error
type StateConfigProvider ¶
type StateConfigProvider interface {
EmbedValues() bool
}
type StatusesConfigProvider ¶
type StatusesConfigProvider interface { Args() string // contains filtered or unexported methods }
type SyncConfigProvider ¶
type TemplateConfigProvider ¶
type TemplateConfigProvider interface { Args() string Values() []string Set() []string OutputDirTemplate() string Validate() bool SkipDeps() bool SkipCleanup() bool SkipTests() bool OutputDir() string IncludeCRDs() bool IncludeNeeds() bool IncludeTransitiveNeeds() bool // contains filtered or unexported methods }
type TestConfigProvider ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.