werf_chart

package
v1.2.4 Latest Latest
Warning

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

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

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
	LockManager *lock_manager.LockManager
}

* 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, lockManager *lock_manager.LockManager) *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() (*helm.ExtraAnnotationsAndLabelsPostRenderer, 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)

func (*Bundle) WrapUpgrade added in v1.2.4

func (bundle *Bundle) WrapUpgrade(ctx context.Context, releaseName string, upgradeFunc func() error) error

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