werf_chart

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 27 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultSecretValuesFileName = "secret-values.yaml"
	SecretDirName               = "secret"
)

Variables

View Source
var TemplateHelpers = `` /* 1303-byte string literal not displayed */

Functions

func DecodeSecretValuesFileFromFilesystem added in v1.2.2

func DecodeSecretValuesFileFromFilesystem(ctx context.Context, path string, m secret.Manager) (map[string]interface{}, error)

func DecodeSecretValuesFileFromGitCommit added in v1.2.2

func DecodeSecretValuesFileFromGitCommit(ctx context.Context, path string, commit string, localGitRepo *git_repo.Local, m secret.Manager, projectDir string) (map[string]interface{}, error)

func GetServiceValues added in v1.2.0

func GetServiceValues(ctx context.Context, projectName string, repo string, imageInfoGetters []*image.InfoGetter, opts ServiceValuesOptions) (map[string]interface{}, error)

func GiterministicFilesLoader added in v1.2.2

func GiterministicFilesLoader(ctx context.Context, localGitRepo *git_repo.Local, projectDir, loadDir string) ([]*loader.BufferedFile, error)

func LoadFilesFromGit added in v1.2.1

func LoadFilesFromGit(ctx context.Context, localGitRepo *git_repo.Local, projectDir, loadDir string) ([]*loader.BufferedFile, error)

Types

type Bundle added in v1.2.3

type Bundle struct {
	Dir       string
	HelmChart *chart.Chart
}

* Bundle object is chart.ChartExtender compatible object * which could be used during helm install/upgrade process

func NewBundle added in v1.2.3

func NewBundle(dir string) *Bundle

func (*Bundle) AfterLoad added in v1.2.3

func (bundle *Bundle) AfterLoad() error

func (*Bundle) GetPostRenderer added in v1.2.3

func (bundle *Bundle) GetPostRenderer() (postrender.PostRenderer, error)

func (*Bundle) MakeValues added in v1.2.3

func (bundle *Bundle) MakeValues(inputVals map[string]interface{}) (map[string]interface{}, error)

func (*Bundle) SetupChart added in v1.2.3

func (bundle *Bundle) SetupChart(c *chart.Chart) error

func (*Bundle) SetupTemplateFuncs added in v1.2.3

func (bundle *Bundle) SetupTemplateFuncs(t *template.Template, funcMap template.FuncMap)

type ServiceValuesOptions added in v1.2.0

type ServiceValuesOptions struct {
	Namespace string
	Env       string
	IsStub    bool
}

type WerfChart

type WerfChart struct {
	Ctx       context.Context
	HelmChart *chart.Chart

	ReleaseName      string
	ChartDir         string
	ProjectDir       string
	SecretValueFiles []string

	ExtraAnnotationsAndLabelsPostRenderer *helm.ExtraAnnotationsAndLabelsPostRenderer
	LockManager                           *lock_manager.LockManager
	SecretsManager                        secret.Manager
	LocalGitRepo                          *git_repo.Local
	// contains filtered or unexported fields
}

func NewWerfChart added in v1.2.0

func NewWerfChart(ctx context.Context, localGitRepo *git_repo.Local, projectDir string, opts WerfChartOptions) *WerfChart

func (*WerfChart) AfterLoad added in v1.2.0

func (wc *WerfChart) AfterLoad() error

func (*WerfChart) CreateNewBundle added in v1.2.3

func (wc *WerfChart) CreateNewBundle(ctx context.Context, destDir string, inputVals map[string]interface{}) (*Bundle, error)

* CreateNewBundle creates new Bundle object with werf chart extensions taken into account. * inputVals could contain any custom values, which should be stored in the bundle.

func (*WerfChart) GetPostRenderer added in v1.2.3

func (wc *WerfChart) GetPostRenderer() (postrender.PostRenderer, error)

func (*WerfChart) MakeValues added in v1.2.0

func (wc *WerfChart) MakeValues(inputVals map[string]interface{}) (map[string]interface{}, error)

func (*WerfChart) SetEnv added in v1.2.0

func (wc *WerfChart) SetEnv(env string) error

func (*WerfChart) SetServiceValues

func (wc *WerfChart) SetServiceValues(vals map[string]interface{}) error

func (*WerfChart) SetWerfConfig added in v1.2.0

func (wc *WerfChart) SetWerfConfig(werfConfig *config.WerfConfig) error

func (*WerfChart) SetupChart added in v1.2.0

func (wc *WerfChart) SetupChart(c *chart.Chart) error

func (*WerfChart) SetupTemplateFuncs added in v1.2.0

func (wc *WerfChart) SetupTemplateFuncs(t *template.Template, funcMap template.FuncMap)

func (*WerfChart) WrapInstall added in v1.2.0

func (wc *WerfChart) WrapInstall(ctx context.Context, installFunc func() error) error

func (*WerfChart) WrapTemplate added in v1.2.0

func (wc *WerfChart) WrapTemplate(ctx context.Context, templateFunc func() error) error

func (*WerfChart) WrapUninstall added in v1.2.0

func (wc *WerfChart) WrapUninstall(ctx context.Context, uninstallFunc func() error, withNamespace bool) error

func (*WerfChart) WrapUpgrade added in v1.2.0

func (wc *WerfChart) WrapUpgrade(ctx context.Context, upgradeFunc func() error) error

type WerfChartOptions added in v1.2.0

type WerfChartOptions struct {
	ReleaseName string
	ChartDir    string

	SecretValueFiles []string
	ExtraAnnotations map[string]string
	ExtraLabels      map[string]string

	LockManager    *lock_manager.LockManager
	SecretsManager secret.Manager
}

Jump to

Keyboard shortcuts

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