Documentation ¶
Overview ¶
Package manifests contains the KustomizeGenerator implementation of the Generator interface.
Index ¶
- func NewKustomizeGeneratorWithObjectTransformer(fsys fs.FS, kustomizationPath string, templateSuffix string, ...) (manifests.TransformableGenerator, error)
- func NewKustomizeGeneratorWithParameterTransformer(fsys fs.FS, kustomizationPath string, templateSuffix string, ...) (manifests.TransformableGenerator, error)
- func NewTransformableKustomizeGenerator(fsys fs.FS, kustomizationPath string, templateSuffix string, ...) (manifests.TransformableGenerator, error)
- type KustomizeGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKustomizeGeneratorWithObjectTransformer ¶
func NewKustomizeGeneratorWithObjectTransformer(fsys fs.FS, kustomizationPath string, templateSuffix string, clnt client.Client, 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, templateSuffix string, clnt client.Client, transformer manifests.ParameterTransformer) (manifests.TransformableGenerator, error)
Create a new KustomizeGenerator with a ParameterTransformer attached (further transformers can be attached to the returned generator object).
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, templateSuffix string, clnt client.Client) (*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 ".".