deploy

package
v1.1.22-fix12 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TemplateEmptyValue = "\"-\""
)

Variables

This section is empty.

Functions

func Deploy

func Deploy(ctx context.Context, projectName, projectDir, helmChartDir string, imagesRepository string, images []images_manager.ImageInfoGetter, release, namespace, commonTag string, tagStrategy tag_strategy.TagStrategy, werfConfig *config.WerfConfig, helmReleaseStorageNamespace, helmReleaseStorageType string, opts DeployOptions) error

func GetSafeSecretManager

func GetSafeSecretManager(ctx context.Context, projectDir, helmChartDir string, secretValues []string, ignoreSecretKey bool) (secret.Manager, error)

func GetServiceValues

func GetServiceValues(ctx context.Context, projectName string, imagesRepository, namespace, commonTag string, tagStrategy tag_strategy.TagStrategy, images []images_manager.ImageInfoGetter, opts ServiceValuesOptions) (map[string]interface{}, error)

func Init

func Init(ctx context.Context, options InitOptions) error

func PrepareWerfChart

func PrepareWerfChart(ctx context.Context, projectName, helmChartDir, env string, m secret.Manager, secretValues []string, serviceValues map[string]interface{}) (*werf_chart.WerfChart, error)

func RunDismiss

func RunDismiss(ctx context.Context, projectName, release, namespace, _ string, opts DismissOptions) error

func RunLint

func RunLint(ctx context.Context, projectDir, helmChartDir string, werfConfig *config.WerfConfig, imagesRepository string, images []images_manager.ImageInfoGetter, commonTag string, tagStrategy tag_strategy.TagStrategy, opts LintOptions) error

func RunRender

func RunRender(ctx context.Context, out io.Writer, projectDir, helmChartDir string, werfConfig *config.WerfConfig, imagesRepository string, images []images_manager.ImageInfoGetter, commonTag string, tagStrategy tag_strategy.TagStrategy, opts RenderOptions) error

Types

type DeployOptions

type DeployOptions struct {
	Values               []string
	SecretValues         []string
	Set                  []string
	SetString            []string
	Timeout              time.Duration
	Env                  string
	UserExtraAnnotations map[string]string
	UserExtraLabels      map[string]string
	IgnoreSecretKey      bool
	ThreeWayMergeMode    helm.ThreeWayMergeModeType
	DryRun               bool
}

type DismissOptions

type DismissOptions struct {
	WithNamespace bool
	WithHooks     bool
}

type InitOptions

type InitOptions struct {
	HelmInitOptions helm.InitOptions
	WithoutHelm     bool
}

type LintOptions

type LintOptions struct {
	Values          []string
	SecretValues    []string
	Set             []string
	SetString       []string
	Env             string
	IgnoreSecretKey bool
}

type LockManager

type LockManager struct {
	Namespace string
	Locker    lockgate.Locker
}

func NewLockManager

func NewLockManager(ctx context.Context, namespace string) (*LockManager, error)

func (*LockManager) LockRelease

func (lockManager *LockManager) LockRelease(ctx context.Context, releaseName string) (lockgate.LockHandle, error)

func (*LockManager) Unlock

func (lockManager *LockManager) Unlock(handle lockgate.LockHandle) error

type RenderOptions

type RenderOptions struct {
	ReleaseName          string
	Namespace            string
	WithoutImagesRepo    bool
	Values               []string
	SecretValues         []string
	Set                  []string
	SetString            []string
	Env                  string
	UserExtraAnnotations map[string]string
	UserExtraLabels      map[string]string
	IgnoreSecretKey      bool
}

type ServiceValuesOptions

type ServiceValuesOptions struct {
	Env string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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