Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeSecretValuesFileFromFilesystem(ctx context.Context, path string, m secret.Manager) (map[string]interface{}, error)
- func DecodeSecretValuesFileFromGitCommit(ctx context.Context, path string, commit string, localGitRepo *git_repo.Local, ...) (map[string]interface{}, error)
- func GetServiceValues(ctx context.Context, projectName string, repo string, ...) (map[string]interface{}, error)
- func GiterministicFilesLoader(ctx context.Context, localGitRepo *git_repo.Local, projectDir, loadDir string) ([]*loader.BufferedFile, error)
- func LoadFilesFromGit(ctx context.Context, localGitRepo *git_repo.Local, projectDir, loadDir string) ([]*loader.BufferedFile, error)
- type Bundle
- func (bundle *Bundle) AfterLoad() error
- func (bundle *Bundle) GetPostRenderer() (*helm.ExtraAnnotationsAndLabelsPostRenderer, error)
- func (bundle *Bundle) MakeValues(inputVals map[string]interface{}) (map[string]interface{}, error)
- func (bundle *Bundle) SetupChart(c *chart.Chart) error
- func (bundle *Bundle) SetupTemplateFuncs(t *template.Template, funcMap template.FuncMap)
- func (bundle *Bundle) WrapUpgrade(ctx context.Context, releaseName string, upgradeFunc func() error) error
- type ServiceValuesOptions
- type WerfChart
- func (wc *WerfChart) AfterLoad() error
- func (wc *WerfChart) CreateNewBundle(ctx context.Context, destDir string, inputVals map[string]interface{}) (*Bundle, error)
- func (wc *WerfChart) GetPostRenderer() (postrender.PostRenderer, error)
- func (wc *WerfChart) MakeValues(inputVals map[string]interface{}) (map[string]interface{}, error)
- func (wc *WerfChart) SetEnv(env string) error
- func (wc *WerfChart) SetServiceValues(vals map[string]interface{}) error
- func (wc *WerfChart) SetWerfConfig(werfConfig *config.WerfConfig) error
- func (wc *WerfChart) SetupChart(c *chart.Chart) error
- func (wc *WerfChart) SetupTemplateFuncs(t *template.Template, funcMap template.FuncMap)
- func (wc *WerfChart) WrapInstall(ctx context.Context, installFunc func() error) error
- func (wc *WerfChart) WrapTemplate(ctx context.Context, templateFunc func() error) error
- func (wc *WerfChart) WrapUninstall(ctx context.Context, uninstallFunc func() error, withNamespace bool) error
- func (wc *WerfChart) WrapUpgrade(ctx context.Context, upgradeFunc func() error) error
- type WerfChartOptions
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 DecodeSecretValuesFileFromGitCommit ¶ added in v1.2.2
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 LoadFilesFromGit ¶ added in v1.2.1
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) GetPostRenderer ¶ added in v1.2.3
func (bundle *Bundle) GetPostRenderer() (*helm.ExtraAnnotationsAndLabelsPostRenderer, error)
func (*Bundle) MakeValues ¶ added in v1.2.3
func (*Bundle) SetupTemplateFuncs ¶ added in v1.2.3
type ServiceValuesOptions ¶ added in v1.2.0
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 (*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 (*WerfChart) SetServiceValues ¶
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 (*WerfChart) SetupTemplateFuncs ¶ added in v1.2.0
func (*WerfChart) WrapInstall ¶ added in v1.2.0
func (*WerfChart) WrapTemplate ¶ added in v1.2.0
func (*WerfChart) WrapUninstall ¶ added in v1.2.0
type WerfChartOptions ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.