Documentation
¶
Overview ¶
Package manifests contains the HelmGenerator implementation of the Generator interface.
Index ¶
- func NewHelmGeneratorWithObjectTransformer(fsys fs.FS, chartPath string, _ client.Client, ...) (manifests.TransformableGenerator, error)
- func NewHelmGeneratorWithParameterTransformer(fsys fs.FS, chartPath string, _ client.Client, ...) (manifests.TransformableGenerator, error)
- func NewTransformableHelmGenerator(fsys fs.FS, chartPath string, _ client.Client) (manifests.TransformableGenerator, error)
- type HelmGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHelmGeneratorWithObjectTransformer ¶
func NewHelmGeneratorWithObjectTransformer(fsys fs.FS, chartPath string, _ client.Client, transformer manifests.ObjectTransformer) (manifests.TransformableGenerator, error)
Create a new HelmGenerator with an ObjectTransformer attached (further transformers can be attached to the returned generator object).
func NewHelmGeneratorWithParameterTransformer ¶
func NewHelmGeneratorWithParameterTransformer(fsys fs.FS, chartPath string, _ client.Client, transformer manifests.ParameterTransformer) (manifests.TransformableGenerator, error)
Create a new HelmGenerator with a ParameterTransformer attached (further transformers can be attached to the returned generator object).
func NewTransformableHelmGenerator ¶
func NewTransformableHelmGenerator(fsys fs.FS, chartPath string, _ client.Client) (manifests.TransformableGenerator, error)
Create a new HelmGenerator as TransformableGenerator.
Types ¶
type HelmGenerator ¶
type HelmGenerator struct {
// contains filtered or unexported fields
}
HelmGenerator is a Generator implementation that basically renders a given Helm chart. A few restrictions apply to the provided Helm chart: it must not contain any subcharts, some template functions are not supported, some bultin variables are not supported, and hooks are processed in a slightly different fashion. Note: HelmGenerator's Generate() method expects local client, client and reconciler name to be set in the passed context; see: Context.WithLocalClient(), Context.WithClient() and Context.WithReconcilerName() in package pkg/component.
func NewHelmGenerator ¶
An empty chartPath will be treated like ".".