deploy

package
v1.0.4-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Deploy

func Deploy(projectDir string, imagesRepoManager ImagesRepoManager, release, namespace, tag string, tagStrategy tag_strategy.TagStrategy, werfConfig *config.WerfConfig, helmReleaseStorageNamespace, helmReleaseStorageType string, opts DeployOptions) error

func GetSafeSecretManager

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

func GetServiceValues

func GetServiceValues(projectName string, imagesRepoManager ImagesRepoManager, namespace, tag string, tagStrategy tag_strategy.TagStrategy, images []ImageInfoGetter, opts ServiceValuesOptions) (map[string]interface{}, error)

func GetTmpWerfChartPath

func GetTmpWerfChartPath(projectName string) string

func Init

func Init(options InitOptions) error

func PrepareWerfChart

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

func ReleaseTmpWerfChart

func ReleaseTmpWerfChart(tmpWerfChartPath string)

func RunDismiss

func RunDismiss(releaseName, namespace, _ string, opts DismissOptions) error

func RunLint

func RunLint(projectDir string, werfConfig *config.WerfConfig, opts LintOptions) error

func RunRender

func RunRender(projectDir string, werfConfig *config.WerfConfig, 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
}

type DismissOptions

type DismissOptions struct {
	WithNamespace bool
	WithHooks     bool
}

type ImageInfo

type ImageInfo struct {
	Name              string
	WithoutRegistry   bool
	ImagesRepoManager ImagesRepoManager
	Tag               string
}

func (*ImageInfo) GetImageId

func (d *ImageInfo) GetImageId() (string, error)

func (*ImageInfo) GetImageName

func (d *ImageInfo) GetImageName() string

func (*ImageInfo) GetName

func (d *ImageInfo) GetName() string

func (*ImageInfo) IsNameless

func (d *ImageInfo) IsNameless() bool

type ImageInfoGetter

type ImageInfoGetter interface {
	IsNameless() bool
	GetName() string
	GetImageName() string
	GetImageId() (string, error)
}

func GetImagesInfoGetters

func GetImagesInfoGetters(configImages []*config.StapelImage, configImagesFromDockerfile []*config.ImageFromDockerfile, imagesRepoManager ImagesRepoManager, tag string, withoutRegistry bool) []ImageInfoGetter

type ImageInfoGetterStub

type ImageInfoGetterStub struct {
	Name              string
	Tag               string
	ImagesRepoManager ImagesRepoManager
}

func (*ImageInfoGetterStub) GetImageId

func (d *ImageInfoGetterStub) GetImageId() (string, error)

func (*ImageInfoGetterStub) GetImageName

func (d *ImageInfoGetterStub) GetImageName() string

func (*ImageInfoGetterStub) GetName

func (d *ImageInfoGetterStub) GetName() string

func (*ImageInfoGetterStub) IsNameless

func (d *ImageInfoGetterStub) IsNameless() bool

type ImagesRepoManager

type ImagesRepoManager interface {
	ImagesRepo() string
	ImageRepo(imageName string) string
	ImageRepoWithTag(imageName, tag string) string
}

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 RenderOptions

type RenderOptions struct {
	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