helm_v3

package
v1.1.22-alpha7 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

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

This section is empty.

Functions

func Init

func Init(opts InitOptions) error

func InitActionConfig

func InitActionConfig(envSettings *cli.EnvSettings, actionConfig *action.Configuration, opts InitActionConfigOptions)

func Install

func Install(ctx context.Context, chart, releaseName string, opts InstallOptions) error

func IsErrReleaseNotFound

func IsErrReleaseNotFound(err error) bool

func NewActionConfig

func NewActionConfig(envSettings *cli.EnvSettings, opts InitActionConfigOptions) *action.Configuration

func NewEnvSettings

func NewEnvSettings(namespace string) (res *cli.EnvSettings)

func Rollback

func Rollback(releaseName string, opts RollbackOptions) error

func Status

func Status(releaseName string, opts StatusOptions) (*release.Release, error)

func Upgrade

func Upgrade(ctx context.Context, chart, releaseName string, opts UpgradeOptions) error

Types

type InitActionConfigOptions

type InitActionConfigOptions struct {
	StatusProgressPeriod      time.Duration
	HooksStatusProgressPeriod time.Duration
}

type InitOptions

type InitOptions struct {
	Debug bool
}

type InstallOptions

type InstallOptions struct {
	ValuesOptions   values.Options
	Namespace       string
	CreateNamespace bool
	Install         bool
	Atomic          bool
	Timeout         time.Duration

	StatusProgressPeriod      time.Duration
	HooksStatusProgressPeriod time.Duration
}

type ResourcesWaiter

type ResourcesWaiter struct {
	Client                    *helm_kube.Client
	LogsFromTime              time.Time
	StatusProgressPeriod      time.Duration
	HooksStatusProgressPeriod time.Duration
}

func NewResourcesWaiter

func NewResourcesWaiter(client *helm_kube.Client, logsFromTime time.Time, statusProgressPeriod, hooksStatusProgressPeriod time.Duration) *ResourcesWaiter

func (*ResourcesWaiter) Wait

func (waiter *ResourcesWaiter) Wait(ctx context.Context, namespace string, resources helm_kube.ResourceList, timeout time.Duration) error

func (*ResourcesWaiter) WatchUntilReady

func (waiter *ResourcesWaiter) WatchUntilReady(ctx context.Context, namespace string, resources helm_kube.ResourceList, timeout time.Duration) error

type RollbackOptions

type RollbackOptions struct {
	Namespace string
	Version   int

	DryRun        bool
	Recreate      bool
	Force         bool
	DisableHooks  bool
	Timeout       time.Duration
	Wait          bool
	CleanupOnFail bool

	StatusProgressPeriod      time.Duration
	HooksStatusProgressPeriod time.Duration
}

type StatusOptions

type StatusOptions struct {
	Version   int
	Namespace string
}

type UpgradeOptions

type UpgradeOptions struct {
	ValuesOptions   values.Options
	Namespace       string
	CreateNamespace bool
	Install         bool
	Atomic          bool
	Timeout         time.Duration

	StatusProgressPeriod      time.Duration
	HooksStatusProgressPeriod time.Duration
}

Jump to

Keyboard shortcuts

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