app

package
v0.76.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 22 Imported by: 4

Documentation

Index

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
)

Variables

This section is empty.

Functions

func AskForConfirmation added in v0.70.0

func AskForConfirmation(s string) bool

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

Types

type App

type App struct {
	KubeContext string
	Logger      *zap.SugaredLogger
	Reverse     bool
	Env         string
	Namespace   string
	Selectors   []string
	HelmBinary  string
	Args        string
	ValuesFiles []string
	Set         map[string]interface{}

	FileOrDir string

	ErrorHandler func(error) error
	// contains filtered or unexported fields
}

func Init

func Init(app *App) *App

func New added in v0.70.0

func New(conf ConfigProvider) *App

func (*App) Apply added in v0.70.0

func (a *App) Apply(c ApplyConfigProvider) error

func (*App) Delete added in v0.70.0

func (a *App) Delete(c DeleteConfigProvider) error

func (*App) DeprecatedSyncCharts added in v0.70.0

func (a *App) DeprecatedSyncCharts(c DeprecatedChartsConfigProvider) error

func (*App) Deps added in v0.70.0

func (a *App) Deps(c DepsConfigProvider) error

func (*App) Destroy added in v0.70.0

func (a *App) Destroy(c DestroyConfigProvider) error

func (*App) Diff added in v0.70.0

func (a *App) Diff(c DiffConfigProvider) error

func (*App) ForEachState added in v0.70.0

func (a *App) ForEachState(do func(*Run) []error) error

func (*App) Lint added in v0.70.0

func (a *App) Lint(c LintConfigProvider) error

func (*App) Repos added in v0.70.0

func (a *App) Repos(c ReposConfigProvider) error

func (*App) Status added in v0.70.0

func (a *App) Status(c StatusesConfigProvider) error

func (*App) Sync added in v0.70.0

func (a *App) Sync(c SyncConfigProvider) error

func (*App) Template added in v0.70.0

func (a *App) Template(c TemplateConfigProvider) error

func (*App) Test added in v0.70.0

func (a *App) Test(c TestConfigProvider) error

func (*App) VisitDesiredStatesWithReleasesFiltered

func (a *App) VisitDesiredStatesWithReleasesFiltered(fileOrDir string, converge func(*state.HelmState, helmexec.Interface) []error) error

type ApplyConfigProvider added in v0.70.0

type ApplyConfigProvider interface {
	Args() string

	Values() []string
	SkipDeps() bool

	SuppressSecrets() bool
	// contains filtered or unexported methods
}

type ConfigProvider added in v0.70.0

type ConfigProvider interface {
	Args() string
	HelmBinary() string

	FileOrDir() string
	KubeContext() string
	Namespace() string
	Selectors() []string
	Set() map[string]interface{}
	ValuesFiles() []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

func (ctx Context) SyncReposOnce(st *state.HelmState, helm state.RepoUpdater) []error

type DeleteConfigProvider added in v0.70.0

type DeleteConfigProvider interface {
	Args() string

	Purge() bool
	// contains filtered or unexported methods
}

type DeprecatedChartsConfigProvider added in v0.70.0

type DeprecatedChartsConfigProvider interface {
	Values() []string
	// contains filtered or unexported methods
}

type DepsConfigProvider added in v0.70.0

type DepsConfigProvider interface {
	Args() string
}

type DestroyConfigProvider added in v0.70.0

type DestroyConfigProvider interface {
	Args() string
	// contains filtered or unexported methods
}

type DiffConfigProvider added in v0.70.0

type DiffConfigProvider interface {
	Args() string

	Values() []string
	SkipDeps() bool

	SuppressSecrets() bool

	DetailedExitcode() bool
	// contains filtered or unexported methods
}

type Error added in v0.60.0

type Error struct {
	Errors []error
	// contains filtered or unexported fields
}

func (*Error) Code added in v0.60.0

func (e *Error) Code() int

func (*Error) Error added in v0.60.0

func (e *Error) Error() string

type LintConfigProvider added in v0.70.0

type LintConfigProvider interface {
	Args() string

	Values() []string
	SkipDeps() bool
	// contains filtered or unexported methods
}

type LoadOpts added in v0.68.0

type LoadOpts struct {
	Selectors   []string
	Environment state.SubhelmfileEnvironmentSpec

	// CalleePath is the absolute path to the file being loaded
	CalleePath string
}

func (LoadOpts) DeepCopy added in v0.70.0

func (o LoadOpts) DeepCopy() LoadOpts

type NoMatchingHelmfileError

type NoMatchingHelmfileError struct {
	// contains filtered or unexported fields
}

func (*NoMatchingHelmfileError) Error

func (e *NoMatchingHelmfileError) Error() string

type RenderOpts added in v0.68.0

type RenderOpts struct {
}

type ReposConfigProvider added in v0.70.0

type ReposConfigProvider interface {
	Args() string
}

type Run added in v0.70.0

type Run struct {
	Ask func(string) bool
	// contains filtered or unexported fields
}

func NewRun added in v0.70.0

func NewRun(st *state.HelmState, helm helmexec.Interface, ctx Context) *Run

func (*Run) Apply added in v0.70.0

func (r *Run) Apply(c ApplyConfigProvider) []error

func (*Run) Delete added in v0.70.0

func (r *Run) Delete(c DeleteConfigProvider) []error

func (*Run) DeprecatedSyncCharts added in v0.70.0

func (r *Run) DeprecatedSyncCharts(c DeprecatedChartsConfigProvider) []error

func (*Run) Deps added in v0.70.0

func (r *Run) Deps(c DepsConfigProvider) []error

func (*Run) Destroy added in v0.70.0

func (r *Run) Destroy(c DestroyConfigProvider) []error

func (*Run) Diff added in v0.70.0

func (r *Run) Diff(c DiffConfigProvider) []error

func (*Run) Lint added in v0.70.0

func (r *Run) Lint(c LintConfigProvider) []error

func (*Run) Repos added in v0.70.0

func (r *Run) Repos(c ReposConfigProvider) []error

func (*Run) Status added in v0.70.0

func (r *Run) Status(c StatusesConfigProvider) []error

func (*Run) Sync added in v0.70.0

func (r *Run) Sync(c SyncConfigProvider) []error

func (*Run) Template added in v0.70.0

func (r *Run) Template(c TemplateConfigProvider) []error

func (*Run) Test added in v0.70.0

func (r *Run) Test(c TestConfigProvider) []error

type StatusesConfigProvider added in v0.70.0

type StatusesConfigProvider interface {
	Args() string
	// contains filtered or unexported methods
}

type SyncConfigProvider added in v0.70.0

type SyncConfigProvider interface {
	Args() string

	Values() []string
	SkipDeps() bool
	// contains filtered or unexported methods
}

type TemplateConfigProvider added in v0.70.0

type TemplateConfigProvider interface {
	Args() string

	Values() []string
	SkipDeps() bool
	// contains filtered or unexported methods
}

type TestConfigProvider added in v0.70.0

type TestConfigProvider interface {
	Args() string

	Timeout() int
	Cleanup() bool
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL