# Functions
ConvertToUnstructured converts slices of bytes to slices of unstructured using a decoding serializer.
GetProfilesFromAnnotations returns a list of profiles defined in the template.
InjectJSONAnnotation marshals a value as JSON and adds an annotation to the first resource in a slice of bytes, or to any resource that already has the annotation.
InjectLabels is a render option that updates the object metadata with the desired labels.
InjectPruneAnnotation injects an annotation on everything but Cluster and GitopsCluster objects to instruct flux *not* to prune these objects.
InNamespace is a Render option that updates the object metadata to put it into the correct namespace.
NewEnvsubstTemplateProcessor creates and returns a new EnvsubstTemplateProcessor.
NewProcessorForTemplate creates and returns an appropriate processor for a template based on its declared type.
NewTextTemplateProcessor creates and returns a new TextTemplateProcessor.
ParamsFromTemplate extracts the named parameters from a CAPITemplate, finding all the named parameters in each of the resource templates, and enriching that with data from the params field in the spec (if found).
ParseTemplateMeta parses a byte slice into a TemplateMeta struct which contains the objects that are in the template, along with the parameters used by each of the objects.
No description provided by the author
TemplateHasRequiredProfiles returns true if the template has any required profiles.
ValidateRenderedTemplates takes a slice of byte contents and tries to validate each as a Kubernetes resource.
# Constants
No description provided by the author
No description provided by the author
CostEstimationAnnotation is to signal we should try and estimate the cost of a template when rendering it.
DisplayNameAnnotation is the annotation used for labeling template resources.
No description provided by the author
No description provided by the author
No description provided by the author
TemplateDelimiterAnnotation can be added to a Template to change the Go template delimiter.
# Structs
EnvsubstTemplateProcessor is an implementation of the Processor interface that uses envsubst to render templates.
Flavour represents a specific template.
Object contains the details of the object rendered from a template along with the parameters.
Param is a parameter that can be templated into a struct.
No description provided by the author
TemplateMeta contains all the objects with the parameters.
TemplateProcessor does the work of rendering a template.
TextProcessor is an implementation of the Processor interface that uses Go's text/template to render .
# Interfaces
Processor is a generic template parser/renderer.
# Type aliases
RenderOptFunc is a functional option for Rendering templates.