Documentation ¶
Index ¶
- func GetChartDependenciesCacheDir(lockChecksum string) string
- func GetPreparedChartDependenciesDir(ctx context.Context, ...) (string, error)
- func HashReq(req, lock []*chart.Dependency) (string, error)
- func LoadChartDependencies(ctx context.Context, ...) ([]*chart.ChartExtenderBufferedFile, error)
- func LoadMetadata(files []*chart.ChartExtenderBufferedFile) (*chart.Metadata, error)
- type Bundle
- func (bundle *Bundle) ChainPostRenderer(postRenderer postrender.PostRenderer) postrender.PostRenderer
- func (bundle *Bundle) ChartCreated(c *chart.Chart) error
- func (bundle *Bundle) ChartDependenciesLoaded() error
- func (bundle *Bundle) ChartLoaded(files []*chart.ChartExtenderBufferedFile) error
- func (bundle *Bundle) LoadDir(dir string) (bool, []*chart.ChartExtenderBufferedFile, error)
- func (bundle *Bundle) LocateChart(name string, settings *cli.EnvSettings) (bool, string, error)
- func (bundle *Bundle) MakeValues(inputVals map[string]interface{}) (map[string]interface{}, error)
- func (bundle *Bundle) ReadFile(filePath string) (bool, []byte, error)
- func (bundle *Bundle) SetupTemplateFuncs(t *template.Template, funcMap template.FuncMap)
- type BundleOptions
- type ChartDependenciesConfiguration
- type WerfChart
- func (wc *WerfChart) ChainPostRenderer(postRenderer postrender.PostRenderer) postrender.PostRenderer
- func (wc *WerfChart) ChartCreated(c *chart.Chart) error
- func (wc *WerfChart) ChartDependenciesLoaded() error
- func (wc *WerfChart) ChartLoaded(files []*chart.ChartExtenderBufferedFile) error
- func (wc *WerfChart) CreateNewBundle(ctx context.Context, destDir, chartVersion string, ...) (*Bundle, error)
- func (wc *WerfChart) LoadDir(dir string) (bool, []*chart.ChartExtenderBufferedFile, error)
- func (wc *WerfChart) LocateChart(name string, settings *cli.EnvSettings) (bool, string, error)
- func (wc *WerfChart) MakeBundleValues(chrt *chart.Chart, inputVals map[string]interface{}) (map[string]interface{}, error)
- func (wc *WerfChart) MakeValues(inputVals map[string]interface{}) (map[string]interface{}, error)
- func (wc *WerfChart) ReadFile(filePath string) (bool, []byte, error)
- func (wc *WerfChart) SetEnv(env string) error
- func (wc *WerfChart) SetWerfConfig(werfConfig *config.WerfConfig) error
- func (wc *WerfChart) SetupTemplateFuncs(t *template.Template, funcMap template.FuncMap)
- type WerfChartOptions
- type WerfChartRuntimeData
- type WerfChartStub
- func (wc *WerfChartStub) AddExtraAnnotationsAndLabels(extraAnnotations, extraLabels map[string]string)
- func (wc *WerfChartStub) ChainPostRenderer(postRenderer postrender.PostRenderer) postrender.PostRenderer
- func (wc *WerfChartStub) ChartCreated(c *chart.Chart) error
- func (wc *WerfChartStub) ChartDependenciesLoaded() error
- func (wc *WerfChartStub) ChartLoaded(files []*chart.ChartExtenderBufferedFile) error
- func (wc *WerfChartStub) LoadDir(dir string) (bool, []*chart.ChartExtenderBufferedFile, error)
- func (wc *WerfChartStub) LocateChart(name string, settings *cli.EnvSettings) (bool, string, error)
- func (wc *WerfChartStub) MakeValues(inputVals map[string]interface{}) (map[string]interface{}, error)
- func (wc *WerfChartStub) ReadFile(filePath string) (bool, []byte, error)
- func (wc *WerfChartStub) SetStubServiceValues(vals map[string]interface{})
- func (wc *WerfChartStub) SetupSecretValueFiles(secretValueFiles []string)
- func (wc *WerfChartStub) SetupSecretsManager(manager *secrets_manager.SecretsManager)
- func (wc *WerfChartStub) SetupTemplateFuncs(t *template.Template, funcMap template.FuncMap)
- type WerfSubchart
- func (wc *WerfSubchart) ChartCreated(c *chart.Chart) error
- func (wc *WerfSubchart) ChartDependenciesLoaded() error
- func (wc *WerfSubchart) ChartLoaded(files []*chart.ChartExtenderBufferedFile) error
- func (wc *WerfSubchart) LoadDir(dir string) (bool, []*chart.ChartExtenderBufferedFile, error)
- func (wc *WerfSubchart) LocateChart(name string, settings *cli.EnvSettings) (bool, string, error)
- func (wc *WerfSubchart) MakeValues(inputVals map[string]interface{}) (map[string]interface{}, error)
- func (wc *WerfSubchart) ReadFile(filePath string) (bool, []byte, error)
- func (wc *WerfSubchart) SetupTemplateFuncs(t *template.Template, funcMap template.FuncMap)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPreparedChartDependenciesDir ¶
func GetPreparedChartDependenciesDir(ctx context.Context, metadataFile, metadataLockFile *chart.ChartExtenderBufferedFile, helmEnvSettings *cli.EnvSettings, registryClientHandle *helm_v3.RegistryClientHandle, buildChartDependenciesOpts command_helpers.BuildChartDependenciesOptions) (string, error)
func LoadChartDependencies ¶
func LoadChartDependencies(ctx context.Context, loadChartDirFunc func(ctx context.Context, dir string) ([]*chart.ChartExtenderBufferedFile, error), chartDir string, loadedChartFiles []*chart.ChartExtenderBufferedFile, helmEnvSettings *cli.EnvSettings, registryClientHandle *helm_v3.RegistryClientHandle, buildChartDependenciesOpts command_helpers.BuildChartDependenciesOptions) ([]*chart.ChartExtenderBufferedFile, error)
func LoadMetadata ¶
func LoadMetadata(files []*chart.ChartExtenderBufferedFile) (*chart.Metadata, error)
Types ¶
type Bundle ¶
type Bundle struct { Dir string HelmChart *chart.Chart HelmEnvSettings *cli.EnvSettings RegistryClientHandle *helm_v3.RegistryClientHandle BuildChartDependenciesOpts command_helpers.BuildChartDependenciesOptions *helpers.ChartExtenderServiceValuesData *helpers.ChartExtenderContextData // contains filtered or unexported fields }
* Bundle object is chart.ChartExtender compatible object * which could be used during helm install/upgrade process
func NewBundle ¶
func NewBundle(ctx context.Context, dir string, helmEnvSettings *cli.EnvSettings, registryClientHandle *helm_v3.RegistryClientHandle, opts BundleOptions) (*Bundle, error)
func (*Bundle) ChainPostRenderer ¶ added in v1.2.37
func (bundle *Bundle) ChainPostRenderer(postRenderer postrender.PostRenderer) postrender.PostRenderer
func (*Bundle) ChartCreated ¶
ChartCreated method for the chart.Extender interface
func (*Bundle) ChartDependenciesLoaded ¶
ChartDependenciesLoaded method for the chart.Extender interface
func (*Bundle) ChartLoaded ¶
func (bundle *Bundle) ChartLoaded(files []*chart.ChartExtenderBufferedFile) error
ChartLoaded method for the chart.Extender interface
func (*Bundle) LocateChart ¶
LocateChart method for the chart.Extender interface
func (*Bundle) MakeValues ¶
MakeValues method for the chart.Extender interface
type BundleOptions ¶
type BundleOptions struct { BuildChartDependenciesOpts command_helpers.BuildChartDependenciesOptions ExtraAnnotations map[string]string ExtraLabels map[string]string }
type ChartDependenciesConfiguration ¶ added in v1.2.10
type ChartDependenciesConfiguration struct { ChartMetadata *chart.Metadata ChartMetadataLock *chart.Lock }
func NewChartDependenciesConfiguration ¶ added in v1.2.14
func NewChartDependenciesConfiguration(chartMetadata *chart.Metadata, chartMetadataLock *chart.Lock) *ChartDependenciesConfiguration
func (*ChartDependenciesConfiguration) GetExternalDependenciesFiles ¶ added in v1.2.14
func (conf *ChartDependenciesConfiguration) GetExternalDependenciesFiles() (bool, *chart.ChartExtenderBufferedFile, *chart.ChartExtenderBufferedFile, error)
type WerfChart ¶
type WerfChart struct { HelmChart *chart.Chart ChartDir string SecretValueFiles []string HelmEnvSettings *cli.EnvSettings RegistryClientHandle *helm_v3.RegistryClientHandle BuildChartDependenciesOpts command_helpers.BuildChartDependenciesOptions DisableSecrets bool GiterminismManager giterminism_manager.Interface SecretsManager *secrets_manager.SecretsManager *secrets.SecretsRuntimeData *helpers.ChartExtenderServiceValuesData *helpers.ChartExtenderContextData // contains filtered or unexported fields }
func NewWerfChart ¶
func NewWerfChart(ctx context.Context, giterminismManager giterminism_manager.Interface, secretsManager *secrets_manager.SecretsManager, chartDir string, helmEnvSettings *cli.EnvSettings, registryClientHandle *helm_v3.RegistryClientHandle, opts WerfChartOptions) *WerfChart
func (*WerfChart) ChainPostRenderer ¶ added in v1.2.37
func (wc *WerfChart) ChainPostRenderer(postRenderer postrender.PostRenderer) postrender.PostRenderer
func (*WerfChart) ChartCreated ¶
ChartCreated method for the chart.Extender interface
func (*WerfChart) ChartDependenciesLoaded ¶
ChartDependenciesLoaded method for the chart.Extender interface
func (*WerfChart) ChartLoaded ¶
func (wc *WerfChart) ChartLoaded(files []*chart.ChartExtenderBufferedFile) error
ChartLoaded method for the chart.Extender interface
func (*WerfChart) CreateNewBundle ¶
func (wc *WerfChart) CreateNewBundle(ctx context.Context, destDir, chartVersion 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) LocateChart ¶
LocateChart method for the chart.Extender interface
func (*WerfChart) MakeBundleValues ¶ added in v1.2.10
func (*WerfChart) MakeValues ¶
MakeValues method for the chart.Extender interface
func (*WerfChart) SetWerfConfig ¶
func (wc *WerfChart) SetWerfConfig(werfConfig *config.WerfConfig) error
type WerfChartOptions ¶
type WerfChartOptions struct { SecretValueFiles []string ExtraAnnotations map[string]string ExtraLabels map[string]string BuildChartDependenciesOpts command_helpers.BuildChartDependenciesOptions DisableSecrets bool }
type WerfChartRuntimeData ¶ added in v1.2.7
type WerfChartStub ¶
type WerfChartStub struct { HelmChart *chart.Chart ChartDir string SecretsManager *secrets_manager.SecretsManager SecretValueFiles []string *secrets.SecretsRuntimeData *helpers.ChartExtenderContextData // contains filtered or unexported fields }
func NewWerfChartStub ¶
func NewWerfChartStub(ctx context.Context) *WerfChartStub
func (*WerfChartStub) AddExtraAnnotationsAndLabels ¶
func (wc *WerfChartStub) AddExtraAnnotationsAndLabels(extraAnnotations, extraLabels map[string]string)
func (*WerfChartStub) ChainPostRenderer ¶ added in v1.2.37
func (wc *WerfChartStub) ChainPostRenderer(postRenderer postrender.PostRenderer) postrender.PostRenderer
func (*WerfChartStub) ChartCreated ¶
func (wc *WerfChartStub) ChartCreated(c *chart.Chart) error
ChartCreated method for the chart.Extender interface
func (*WerfChartStub) ChartDependenciesLoaded ¶
func (wc *WerfChartStub) ChartDependenciesLoaded() error
ChartDependenciesLoaded method for the chart.Extender interface
func (*WerfChartStub) ChartLoaded ¶
func (wc *WerfChartStub) ChartLoaded(files []*chart.ChartExtenderBufferedFile) error
ChartLoaded method for the chart.Extender interface
func (*WerfChartStub) LoadDir ¶
func (wc *WerfChartStub) LoadDir(dir string) (bool, []*chart.ChartExtenderBufferedFile, error)
LoadDir method for the chart.Extender interface
func (*WerfChartStub) LocateChart ¶
func (wc *WerfChartStub) LocateChart(name string, settings *cli.EnvSettings) (bool, string, error)
LocateChart method for the chart.Extender interface
func (*WerfChartStub) MakeValues ¶
func (wc *WerfChartStub) MakeValues(inputVals map[string]interface{}) (map[string]interface{}, error)
MakeValues method for the chart.Extender interface
func (*WerfChartStub) ReadFile ¶
func (wc *WerfChartStub) ReadFile(filePath string) (bool, []byte, error)
ReadFile method for the chart.Extender interface
func (*WerfChartStub) SetStubServiceValues ¶
func (wc *WerfChartStub) SetStubServiceValues(vals map[string]interface{})
func (*WerfChartStub) SetupSecretValueFiles ¶
func (wc *WerfChartStub) SetupSecretValueFiles(secretValueFiles []string)
func (*WerfChartStub) SetupSecretsManager ¶
func (wc *WerfChartStub) SetupSecretsManager(manager *secrets_manager.SecretsManager)
func (*WerfChartStub) SetupTemplateFuncs ¶
func (wc *WerfChartStub) SetupTemplateFuncs(t *template.Template, funcMap template.FuncMap)
SetupTemplateFuncs method for the chart.Extender interface
type WerfSubchart ¶
func NewWerfSubchart ¶
func NewWerfSubchart() *WerfSubchart
func (*WerfSubchart) ChartCreated ¶
func (wc *WerfSubchart) ChartCreated(c *chart.Chart) error
ChartCreated method for the chart.Extender interface
func (*WerfSubchart) ChartDependenciesLoaded ¶
func (wc *WerfSubchart) ChartDependenciesLoaded() error
ChartDependenciesLoaded method for the chart.Extender interface
func (*WerfSubchart) ChartLoaded ¶
func (wc *WerfSubchart) ChartLoaded(files []*chart.ChartExtenderBufferedFile) error
ChartLoaded method for the chart.Extender interface
func (*WerfSubchart) LoadDir ¶
func (wc *WerfSubchart) LoadDir(dir string) (bool, []*chart.ChartExtenderBufferedFile, error)
LoadDir method for the chart.Extender interface
func (*WerfSubchart) LocateChart ¶
func (wc *WerfSubchart) LocateChart(name string, settings *cli.EnvSettings) (bool, string, error)
LocateChart method for the chart.Extender interface
func (*WerfSubchart) MakeValues ¶
func (wc *WerfSubchart) MakeValues(inputVals map[string]interface{}) (map[string]interface{}, error)
MakeValues method for the chart.Extender interface
func (*WerfSubchart) ReadFile ¶
func (wc *WerfSubchart) ReadFile(filePath string) (bool, []byte, error)
ReadFile method for the chart.Extender interface
func (*WerfSubchart) SetupTemplateFuncs ¶
func (wc *WerfSubchart) SetupTemplateFuncs(t *template.Template, funcMap template.FuncMap)
SetupTemplateFuncs method for the chart.Extender interface