Documentation ¶
Overview ¶
Package manifests contains the KustomizeGenerator implementation of the Generator interface.
Index ¶
- func NewKustomizeGeneratorWithObjectTransformer(fsys fs.FS, kustomizationPath string, clnt client.Client, ...) (manifests.TransformableGenerator, error)
- func NewKustomizeGeneratorWithParameterTransformer(fsys fs.FS, kustomizationPath string, clnt client.Client, ...) (manifests.TransformableGenerator, error)
- func NewTransformableKustomizeGenerator(fsys fs.FS, kustomizationPath string, clnt client.Client, ...) (manifests.TransformableGenerator, error)
- type KustomizeGenerator
- type KustomizeGeneratorOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKustomizeGeneratorWithObjectTransformer ¶
func NewKustomizeGeneratorWithObjectTransformer(fsys fs.FS, kustomizationPath string, clnt client.Client, options KustomizeGeneratorOptions, transformer manifests.ObjectTransformer) (manifests.TransformableGenerator, error)
Create a new KustomizeGenerator with an ObjectTransformer attached (further transformers can be attached to the returned generator object).
func NewKustomizeGeneratorWithParameterTransformer ¶
func NewKustomizeGeneratorWithParameterTransformer(fsys fs.FS, kustomizationPath string, clnt client.Client, options KustomizeGeneratorOptions, transformer manifests.ParameterTransformer) (manifests.TransformableGenerator, error)
Create a new KustomizeGenerator with a ParameterTransformer attached (further transformers can be attached to the returned generator object).
func NewTransformableKustomizeGenerator ¶
func NewTransformableKustomizeGenerator(fsys fs.FS, kustomizationPath string, clnt client.Client, options KustomizeGeneratorOptions) (manifests.TransformableGenerator, error)
Create a new KustomizeGenerator as TransformableGenerator.
Types ¶
type KustomizeGenerator ¶
type KustomizeGenerator struct {
// contains filtered or unexported fields
}
KustomizeGenerator is a Generator implementation that basically renders a given Kustomization.
func NewKustomizeGenerator ¶
func NewKustomizeGenerator(fsys fs.FS, kustomizationPath string, clnt client.Client, options KustomizeGeneratorOptions) (*KustomizeGenerator, error)
Create a new KustomizeGenerator. The parameter client should be a client for the local cluster (i.e. the cluster where the component object resides); it is used by the localLookup and mustLocalLookup template functions. If fsys is nil, the local operating system filesystem will be used, and kustomizationPath can be an absolute or relative path (in the latter case it will be considered relative to the current working directory). If fsys is non-nil, then kustomizationPath should be a relative path; if an absolute path is supplied, it will be turned An empty kustomizationPath will be treated like ".".
type KustomizeGeneratorOptions ¶ added in v0.3.32
type KustomizeGeneratorOptions struct { // If defined, only files with that suffix will be subject to templating. TemplateSuffix *string // If defined, the given left delimiter will be used to parse go templates; otherwise, defaults to '{{' LeftTemplateDelimiter *string // If defined, the given right delimiter will be used to parse go templates; otherwise, defaults to '}}' RightTemplateDelimiter *string }
KustomizeGeneratorOptions allows to tweak the behavior of the kustomize generator.