Documentation
¶
Index ¶
Constants ¶
View Source
const TemplateDelimiterAnnotation string = "sets.gitops.pro/delimiters"
TemplateDelimiterAnnotation can be added to a Template to change the Go template delimiter.
It's assumed to be a string with "left,right" By default the delimiters are the standard Go templating delimiters: {{ and }}.
Variables ¶
This section is empty.
Functions ¶
func IsNamespacedObject ¶
IsNamespacedObject returns true if the provided Object's Kind is a resource that is Namespaced.
TODO: This should get the CRD for custom CRs but this requires privilege. https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-uris
func Render ¶
func Render(ctx context.Context, r *templatesv1.GitOpsSet, configuredGenerators map[string]generators.Generator) ([]*unstructured.Unstructured, error)
Render parses the GitOpsSet and renders the template resources using the configured generators and templates.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.