Documentation
¶
Index ¶
- Constants
- Variables
- func AskForConfirmation(s string) bool
- func FormatAsJson(releases []*HelmRelease) error
- func FormatAsTable(releases []*HelmRelease) error
- func GetArgs(args string, state *state.HelmState) []string
- func ValidateConfig(conf ApplyConfigProvider) error
- type App
- func (a *App) Apply(c ApplyConfigProvider) error
- func (a *App) CleanCacheDir(c CacheConfigProvider) 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) Init(c InitConfigProvider) error
- func (a *App) Lint(c LintConfigProvider) error
- func (a *App) ListReleases(c ListConfigProvider) error
- func (a *App) PrintDAGState(c DAGConfigProvider) error
- func (a *App) PrintState(c StateConfigProvider) error
- func (a *App) Repos(c ReposConfigProvider) error
- func (a *App) ShowCacheDir(c CacheConfigProvider) 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 CacheConfigProvider
- type ConfigProvider
- type Context
- type DAGConfig
- type DAGConfigProvider
- type DeleteConfigProvider
- type DeprecatedChartsConfigProvider
- type DepsConfigProvider
- type DestroyConfigProvider
- type DiffConfigProvider
- type Error
- type FetchConfigProvider
- type HelmRelease
- type HelmfileInit
- type InitConfigProvider
- 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" // TODO: Remove this function once Helmfile v0.x DeprecatedHelmfile = "charts.yaml" DefaultHelmfileDirectory = "helmfile.d" ExperimentalSelectorExplicit = "explicit-selector-inheritance" // value to remove default selector inheritance to sub-helmfiles and use the explicit one )
View Source
const ( DefaultHelmBinary = state.DefaultHelmBinary DefaultKustomizeBinary = state.DefaultKustomizeBinary )
View Source
const ( HelmRequiredVersion = "v3.15.4" HelmRecommendedVersion = "v3.16.2" HelmDiffRecommendedVersion = "v3.9.11" HelmSecretsRecommendedVersion = "v4.6.0" HelmGitRecommendedVersion = "v0.15.1" HelmS3RecommendedVersion = "v0.16.0" HelmInstallCommand = "https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3" )
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 = r } } SetFilter = func(f bool) func(o *LoadOpts) { return func(o *LoadOpts) { o.Filter = f } } )
View Source
var Cancel goContext.CancelFunc
View Source
var CleanWaitGroup sync.WaitGroup
Functions ¶
func AskForConfirmation ¶ added in v0.145.1
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 ¶ added in v0.145.1
func FormatAsJson(releases []*HelmRelease) error
func FormatAsTable ¶ added in v0.145.1
func FormatAsTable(releases []*HelmRelease) error
func ValidateConfig ¶ added in v0.145.1
func ValidateConfig(conf ApplyConfigProvider) error
ValidateConfig validates the given Helmfile config.
Types ¶
type App ¶
type App struct { OverrideKubeContext string OverrideHelmBinary string OverrideKustomizeBinary string EnableLiveOutput bool StripArgsValuesOnExitError bool DisableForceUpdate bool Logger *zap.SugaredLogger Kubeconfig string Env string Namespace string Chart string Selectors []string Args string ValuesFiles []string Set map[string]any FileOrDir string // contains filtered or unexported fields }
App is the main application object.
func New ¶ added in v0.145.1
func New(conf ConfigProvider) *App
func (*App) Apply ¶ added in v0.145.1
func (a *App) Apply(c ApplyConfigProvider) error
func (*App) CleanCacheDir ¶ added in v0.145.1
func (a *App) CleanCacheDir(c CacheConfigProvider) error
func (*App) Delete ¶ added in v0.145.1
func (a *App) Delete(c DeleteConfigProvider) error
TODO: Remove this function once Helmfile v0.x
func (*App) DeprecatedSyncCharts ¶ added in v0.145.1
func (a *App) DeprecatedSyncCharts(c DeprecatedChartsConfigProvider) error
TODO: Remove this function once Helmfile v0.x
func (*App) Deps ¶ added in v0.145.1
func (a *App) Deps(c DepsConfigProvider) error
func (*App) Destroy ¶ added in v0.145.1
func (a *App) Destroy(c DestroyConfigProvider) error
func (*App) Diff ¶ added in v0.145.1
func (a *App) Diff(c DiffConfigProvider) error
func (*App) Fetch ¶ added in v0.145.1
func (a *App) Fetch(c FetchConfigProvider) error
func (*App) ForEachState ¶ added in v0.145.1
func (*App) Init ¶ added in v0.148.0
func (a *App) Init(c InitConfigProvider) error
func (*App) Lint ¶ added in v0.145.1
func (a *App) Lint(c LintConfigProvider) error
func (*App) ListReleases ¶ added in v0.145.1
func (a *App) ListReleases(c ListConfigProvider) error
func (*App) PrintDAGState ¶ added in v0.164.0
func (a *App) PrintDAGState(c DAGConfigProvider) error
func (*App) PrintState ¶ added in v0.145.1
func (a *App) PrintState(c StateConfigProvider) error
func (*App) Repos ¶ added in v0.145.1
func (a *App) Repos(c ReposConfigProvider) error
func (*App) ShowCacheDir ¶ added in v0.145.1
func (a *App) ShowCacheDir(c CacheConfigProvider) error
func (*App) Status ¶ added in v0.145.1
func (a *App) Status(c StatusesConfigProvider) error
func (*App) Sync ¶ added in v0.145.1
func (a *App) Sync(c SyncConfigProvider) error
func (*App) Template ¶ added in v0.145.1
func (a *App) Template(c TemplateConfigProvider) error
func (*App) Test ¶ added in v0.145.1
func (a *App) Test(c TestConfigProvider) error
func (*App) WrapWithoutSelector ¶ added in v0.145.1
func (*App) WriteValues ¶ added in v0.145.1
func (a *App) WriteValues(c WriteValuesConfigProvider) error
type ApplyConfigProvider ¶ added in v0.145.1
type ApplyConfigProvider interface { Args() string PostRenderer() string PostRendererArgs() []string Cascade() string HideNotes() bool SuppressOutputLineRegex() []string Values() []string Set() []string SkipCRDs() bool SkipDeps() bool SkipRefresh() bool Wait() bool WaitForJobs() bool IncludeTests() bool Suppress() []string SuppressSecrets() bool ShowSecrets() bool NoHooks() bool SuppressDiff() bool DetailedExitcode() bool StripTrailingCR() bool Color() bool NoColor() bool Context() int DiffOutput() string // TODO: Remove this function once Helmfile v0.x RetainValuesFiles() bool Validate() bool SkipCleanup() bool SkipDiffOnInstall() bool DiffArgs() string SyncArgs() string DAGConfig // contains filtered or unexported methods }
type CacheConfigProvider ¶ added in v0.145.3
type CacheConfigProvider any
type ConfigProvider ¶ added in v0.145.1
type ConfigProvider interface { Args() string HelmBinary() string KustomizeBinary() string EnableLiveOutput() bool StripArgsValuesOnExitError() bool DisableForceUpdate() bool SkipDeps() bool SkipRefresh() bool FileOrDir() string KubeContext() string Namespace() string Chart() string Selectors() []string StateValuesSet() map[string]any StateValuesFiles() []string Kubeconfig() string Env() string // contains filtered or unexported methods }
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext() Context
func (Context) SyncReposOnce ¶
type DAGConfigProvider ¶ added in v0.164.0
type DAGConfigProvider any
type DeleteConfigProvider ¶ added in v0.145.1
type DeleteConfigProvider interface { Args() string Cascade() string Purge() bool SkipDeps() bool SkipRefresh() bool SkipCharts() bool DeleteWait() bool DeleteTimeout() int // contains filtered or unexported methods }
TODO: Remove this function once Helmfile v0.x
type DeprecatedChartsConfigProvider ¶ added in v0.145.1
type DeprecatedChartsConfigProvider interface { Values() []string IncludeTransitiveNeeds() bool // contains filtered or unexported methods }
TODO: Remove this function once Helmfile v0.x
type DepsConfigProvider ¶ added in v0.145.1
type DestroyConfigProvider ¶ added in v0.145.1
type DiffConfigProvider ¶ added in v0.145.1
type DiffConfigProvider interface { Args() string PostRenderer() string PostRendererArgs() []string SuppressOutputLineRegex() []string Values() []string Set() []string Validate() bool SkipCRDs() bool SkipDeps() bool SkipRefresh() bool IncludeTests() bool Suppress() []string SuppressSecrets() bool ShowSecrets() bool NoHooks() bool SuppressDiff() bool SkipDiffOnInstall() bool DiffArgs() string DAGConfig DetailedExitcode() bool StripTrailingCR() bool Color() bool NoColor() bool Context() int DiffOutput() string // contains filtered or unexported methods }
type Error ¶ added in v0.145.1
type Error struct { Errors []error // contains filtered or unexported fields }
Error is a wrapper around an error that adds context to the error.
type FetchConfigProvider ¶ added in v0.145.1
type HelmRelease ¶ added in v0.145.1
type HelmfileInit ¶ added in v0.148.0
type HelmfileInit struct {
// contains filtered or unexported fields
}
func NewHelmfileInit ¶ added in v0.148.0
func NewHelmfileInit(helmBinary string, c InitConfigProvider, logger *zap.SugaredLogger, runner helmexec.Runner) *HelmfileInit
func (*HelmfileInit) CheckHelm ¶ added in v0.148.0
func (h *HelmfileInit) CheckHelm() error
func (*HelmfileInit) CheckHelmPlugins ¶ added in v0.148.0
func (h *HelmfileInit) CheckHelmPlugins() error
func (*HelmfileInit) Initialize ¶ added in v0.148.0
func (h *HelmfileInit) Initialize() error
func (*HelmfileInit) InstallHelm ¶ added in v0.148.0
func (h *HelmfileInit) InstallHelm() error
func (*HelmfileInit) UpdateHelm ¶ added in v0.148.0
func (h *HelmfileInit) UpdateHelm() error
func (*HelmfileInit) WhetherContinue ¶ added in v0.148.0
func (h *HelmfileInit) WhetherContinue(ask string) error
type InitConfigProvider ¶ added in v0.148.0
type InitConfigProvider interface {
Force() bool
}
type LintConfigProvider ¶ added in v0.145.1
type ListConfigProvider ¶ added in v0.145.1
type LoadOption ¶ added in v0.145.1
type LoadOption func(o *LoadOpts)
type LoadOpts ¶ added in v0.145.1
type MultiError ¶ added in v0.145.1
type MultiError struct {
Errors []error
}
func (*MultiError) Error ¶ added in v0.145.1
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 ¶ added in v0.145.1
type RenderOpts struct { }
type ReposConfigProvider ¶ added in v0.145.1
type Run ¶ added in v0.145.1
type Run struct { ReleaseToChart map[state.PrepareChartKey]string Ask func(string) bool // contains filtered or unexported fields }
func (*Run) DeprecatedSyncCharts ¶ added in v0.145.1
func (r *Run) DeprecatedSyncCharts(c DeprecatedChartsConfigProvider) []error
TODO: Remove this function once Helmfile v0.x
func (*Run) Deps ¶ added in v0.145.1
func (r *Run) Deps(c DepsConfigProvider) []error
func (*Run) Repos ¶ added in v0.145.1
func (r *Run) Repos(c ReposConfigProvider) error
type StateConfigProvider ¶ added in v0.145.1
type StateConfigProvider interface {
EmbedValues() bool
}
type StatusesConfigProvider ¶ added in v0.145.1
type StatusesConfigProvider interface { Args() string // contains filtered or unexported methods }
type SyncConfigProvider ¶ added in v0.145.1
type SyncConfigProvider interface { Args() string PostRenderer() string PostRendererArgs() []string HideNotes() bool Cascade() string Values() []string Set() []string SkipCRDs() bool SkipDeps() bool SkipRefresh() bool Wait() bool WaitForJobs() bool SyncArgs() string Validate() bool SkipNeeds() bool IncludeNeeds() bool IncludeTransitiveNeeds() bool DAGConfig // contains filtered or unexported methods }
type TemplateConfigProvider ¶ added in v0.145.1
type TemplateConfigProvider interface { Args() string PostRenderer() string PostRendererArgs() []string Values() []string Set() []string OutputDirTemplate() string Validate() bool SkipDeps() bool SkipRefresh() bool SkipCleanup() bool SkipTests() bool OutputDir() string IncludeCRDs() bool KubeVersion() string ShowOnly() []string DAGConfig // contains filtered or unexported methods }
type TestConfigProvider ¶ added in v0.145.1
Source Files
¶
Click to show internal directories.
Click to hide internal directories.