mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-03 12:03:29 +02:00
- createNamespace is a new attribute that can be added to helmDefaults or an individual release to enforce the creation of a release namespace during sync if the namespace does not exist. This leverages helm's (3.2+) --create-namespace flag for the install/upgrade command. If running helm < 3.2, the createNamespace attribute has no effect. Resolves #891 Resolves #1140
38 lines
1.3 KiB
Go
38 lines
1.3 KiB
Go
package helmexec
|
|
|
|
// Version represents the version of helm
|
|
type Version struct {
|
|
Major int
|
|
Minor int
|
|
Patch int
|
|
}
|
|
|
|
// Interface for executing helm commands
|
|
type Interface interface {
|
|
SetExtraArgs(args ...string)
|
|
SetHelmBinary(bin string)
|
|
|
|
AddRepo(name, repository, cafile, certfile, keyfile, username, password string) error
|
|
UpdateRepo() error
|
|
BuildDeps(name, chart string) error
|
|
UpdateDeps(chart string) error
|
|
SyncRelease(context HelmContext, name, chart string, flags ...string) error
|
|
DiffRelease(context HelmContext, name, chart string, suppressDiff bool, flags ...string) error
|
|
TemplateRelease(name, chart string, flags ...string) error
|
|
Fetch(chart string, flags ...string) error
|
|
Lint(name, chart string, flags ...string) error
|
|
ReleaseStatus(context HelmContext, name string, flags ...string) error
|
|
DeleteRelease(context HelmContext, name string, flags ...string) error
|
|
TestRelease(context HelmContext, name string, flags ...string) error
|
|
List(context HelmContext, filter string, flags ...string) (string, error)
|
|
DecryptSecret(context HelmContext, name string, flags ...string) (string, error)
|
|
IsHelm3() bool
|
|
GetVersion() Version
|
|
IsVersionAtLeast(major int, minor int) bool
|
|
}
|
|
|
|
type DependencyUpdater interface {
|
|
UpdateDeps(chart string) error
|
|
IsHelm3() bool
|
|
}
|