templates

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

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

func IsNamespacedObject(obj runtime.Object) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳