Documentation ¶
Index ¶
- Constants
- Variables
- func Delete(releaseName string, opts DeleteOptions) error
- func DeployHelmChart(chartPath, releaseName, namespace string, opts ChartOptions) (err error)
- func Get(out io.Writer, releaseName string, opts GetOptions) error
- func History(out io.Writer, releaseName string, opts HistoryOptions) error
- func Init(options InitOptions) error
- func Lint(out io.Writer, chartPath, namespace string, values []string, ...) error
- func Ls(out io.Writer, filter string, opts LsOptions) error
- func PurgeHelmRelease(releaseName, namespace string, withNamespace, withHooks bool) error
- func ReleaseInstall(chartPath, releaseName, namespace string, values []string, ...) error
- func ReleaseRollback(releaseName string, revision int32, threeWayMergeMode ThreeWayMergeModeType, ...) error
- func ReleaseUpdate(chartPath, releaseName string, values []string, ...) error
- func Render(out io.Writer, chartPath, releaseName, namespace string, values []string, ...) error
- func Rollback(releaseName string, revision int32, opts RollbackOptions) error
- func SetReleaseLogSecretValuesToMask(secretValuesToMask []string)
- func WerfTemplateEngineWithExtraAnnotationsAndLabels(extraAnnotations, extraLabels map[string]string, f func() error) error
- type ChartOptions
- type ChartTemplates
- func (templates ChartTemplates) ByKind(kind string) []Template
- func (templates ChartTemplates) DaemonSets() []Template
- func (templates ChartTemplates) Deployments() []Template
- func (templates ChartTemplates) Jobs() []Template
- func (templates ChartTemplates) Pods() []Template
- func (templates ChartTemplates) StatefulSets() []Template
- type ChartValuesOptions
- type DeleteOptions
- type GetOptions
- type HistoryOptions
- type InitOptions
- type LintOptions
- type LsOptions
- type ReleaseInstallOptions
- type ReleaseRollbackOptions
- type ReleaseState
- type ReleaseUpdateOptions
- type RenderOptions
- type ResourcesWaiter
- type RollbackOptions
- type Template
- type ThreeWayMergeModeType
- type WerfEngine
Constants ¶
View Source
const ( TrackTerminationModeAnnoName = "werf.io/track-termination-mode" FailModeAnnoName = "werf.io/fail-mode" FailuresAllowedPerReplicaAnnoName = "werf.io/failures-allowed-per-replica" LogRegexAnnoName = "werf.io/log-regex" LogRegexForAnnoPrefix = "werf.io/log-regex-for-" SkipLogsAnnoName = "werf.io/skip-logs" SkipLogsForContainersAnnoName = "werf.io/skip-logs-for-containers" ShowLogsOnlyForContainers = "werf.io/show-logs-only-for-containers" ShowLogsUntilAnnoName = "werf.io/show-logs-until" ShowEventsAnnoName = "werf.io/show-service-messages" )
Variables ¶
View Source
var ( HelmSettings helm_env.EnvSettings HelmReleaseStorageNamespace string HelmReleaseStorageType string WerfTemplateEngine = NewWerfEngine() WerfTemplateEngineName = "werfGoTpl" DefaultReleaseStorageNamespace = "kube-system" ConfigMapStorage = "configmap" SecretStorage = "secret" LoadChartfileFunc = func(chartPath string) (*chart.Chart, error) { return chartutil.Load(chartPath) } ErrNoSuccessfullyDeployedReleaseRevisionFound = errors.New("no DEPLOYED release revision found") )
Functions ¶
func Delete ¶
func Delete(releaseName string, opts DeleteOptions) error
func DeployHelmChart ¶
func DeployHelmChart(chartPath, releaseName, namespace string, opts ChartOptions) (err error)
func Init ¶
func Init(options InitOptions) error
func PurgeHelmRelease ¶
func ReleaseInstall ¶
func ReleaseInstall(chartPath, releaseName, namespace string, values []string, secretValues []map[string]interface{}, set, setString []string, threeWayMergeMode ThreeWayMergeModeType, opts ReleaseInstallOptions) error
func ReleaseRollback ¶
func ReleaseRollback(releaseName string, revision int32, threeWayMergeMode ThreeWayMergeModeType, opts ReleaseRollbackOptions) error
func ReleaseUpdate ¶
func ReleaseUpdate(chartPath, releaseName string, values []string, secretValues []map[string]interface{}, set, setString []string, threeWayMergeMode ThreeWayMergeModeType, opts ReleaseUpdateOptions) error
func SetReleaseLogSecretValuesToMask ¶
func SetReleaseLogSecretValuesToMask(secretValuesToMask []string)
Types ¶
type ChartOptions ¶
type ChartOptions struct { Timeout time.Duration DryRun bool Debug bool ThreeWayMergeMode ThreeWayMergeModeType ChartValuesOptions }
type ChartTemplates ¶
type ChartTemplates []Template
func GetTemplatesFromChart ¶
func GetTemplatesFromReleaseRevision ¶
func GetTemplatesFromReleaseRevision(releaseName string, revision int32) (ChartTemplates, error)
func (ChartTemplates) ByKind ¶
func (templates ChartTemplates) ByKind(kind string) []Template
func (ChartTemplates) DaemonSets ¶
func (templates ChartTemplates) DaemonSets() []Template
func (ChartTemplates) Deployments ¶
func (templates ChartTemplates) Deployments() []Template
func (ChartTemplates) Jobs ¶
func (templates ChartTemplates) Jobs() []Template
func (ChartTemplates) Pods ¶
func (templates ChartTemplates) Pods() []Template
func (ChartTemplates) StatefulSets ¶
func (templates ChartTemplates) StatefulSets() []Template
type ChartValuesOptions ¶
type DeleteOptions ¶
type GetOptions ¶
type HistoryOptions ¶
type InitOptions ¶
type LintOptions ¶
type LintOptions struct {
Strict bool
}
type ReleaseInstallOptions ¶
type ReleaseInstallOptions struct { Debug bool // contains filtered or unexported fields }
type ReleaseRollbackOptions ¶
type ReleaseRollbackOptions struct {
// contains filtered or unexported fields
}
type ReleaseState ¶
type ReleaseUpdateOptions ¶
type ReleaseUpdateOptions struct { Debug bool // contains filtered or unexported fields }
type RenderOptions ¶
type RenderOptions struct {
ShowNotes bool
}
type ResourcesWaiter ¶
type ResourcesWaiter struct { Client *helmKube.Client LogsFromTime time.Time StatusProgressPeriod time.Duration HooksStatusProgressPeriod time.Duration }
func (*ResourcesWaiter) WaitForResources ¶
func (*ResourcesWaiter) WatchUntilReady ¶
type RollbackOptions ¶
type Template ¶
type Template struct { Version string `yaml:"apiVersion,omitempty"` Kind string `yaml:"kind,omitempty"` Metadata struct { Name string `yaml:"name,omitempty"` Namespace string `yaml:"namespace,omitempty"` Annotations map[string]string `yaml:"annotations,omitempty"` Labels map[string]string `yaml:"labels,omitempty"` UID string `yaml:"uid,omitempty"` OtherFields map[string]interface{} `yaml:",inline"` } `yaml:"metadata,omitempty"` Status string `yaml:"status,omitempty"` OtherFields map[string]interface{} `yaml:",inline"` }
type ThreeWayMergeModeType ¶
type ThreeWayMergeModeType string
var ( ThreeWayMergeEnabled ThreeWayMergeModeType = "enabled" ThreeWayMergeOnlyNewReleases ThreeWayMergeModeType = "onlyNewReleases" ThreeWayMergeDisabled ThreeWayMergeModeType = "disabled" )
type WerfEngine ¶
type WerfEngine struct { *engine.Engine ExtraAnnotations map[string]string ExtraLabels map[string]string }
func NewWerfEngine ¶
func NewWerfEngine() *WerfEngine
func (*WerfEngine) InitWerfEngineExtraTemplatesFunctions ¶
func (e *WerfEngine) InitWerfEngineExtraTemplatesFunctions(decodedSecretFiles map[string]string)
Click to show internal directories.
Click to hide internal directories.