Documentation ¶
Index ¶
- Variables
- func RenderObjectSetTemplateSpec(pkgInstance *packagetypes.PackageInstance) (templateSpec corev1alpha1.ObjectSetTemplateSpec)
- func RenderObjects(ctx context.Context, pkg *packagetypes.Package, ...) ([]unstructured.Unstructured, error)
- func RenderPackageInstance(ctx context.Context, pkg *packagetypes.Package, ...) (*packagetypes.PackageInstance, error)
- func RenderTemplates(_ context.Context, pkg *packagetypes.Package, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidConditionalPathsExpression = errors.New("invalid spec.conditionalPaths expression")
Functions ¶
func RenderObjectSetTemplateSpec ¶
func RenderObjectSetTemplateSpec( pkgInstance *packagetypes.PackageInstance, ) (templateSpec corev1alpha1.ObjectSetTemplateSpec)
Renders a ObjectSetTemplateSpec from a PackageInstance to use with ObjectSet and ObjectDeployment APIs.
func RenderObjects ¶
func RenderObjects( ctx context.Context, pkg *packagetypes.Package, tmplCtx packagetypes.PackageRenderContext, validator packagetypes.ObjectValidator, ) ( []unstructured.Unstructured, error, )
Renders all .yml and .yaml files into Kubernetes Objects.
func RenderPackageInstance ¶
func RenderPackageInstance( ctx context.Context, pkg *packagetypes.Package, tmplCtx packagetypes.PackageRenderContext, pkgValidator packagetypes.PackageValidator, objValidator packagetypes.ObjectValidator, ) (*packagetypes.PackageInstance, error)
Turns a Package and PackageRenderContext into a PackageInstance.
func RenderTemplates ¶
func RenderTemplates(_ context.Context, pkg *packagetypes.Package, tmplCtx packagetypes.PackageRenderContext) error
Runs a go-template transformer on all .gotmpl files.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.