Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ManifestFileSuffix = []string{"yaml", "yml", "json"}
Functions ¶
This section is empty.
Types ¶
type Renderer ¶
type Renderer interface { // RenderObjects renders kubernetes objects using provided TemplatingData RenderObjects(data *TemplatingData) ([]*unstructured.Unstructured, error) }
Renderer renders k8s objects from a manifest source dir and TemplatingData used by the templating engine
func NewRenderer ¶
NewRenderer creates a Renderer object, that will render all template files provided. file format needs to be either json or yaml.
type TemplatingData ¶
type TemplatingData struct { // Funcs are additional Functions used during the templating process Funcs template.FuncMap // Data used for the rendering process Data interface{} }
TemplatingData is used by the templating engine to render templates
Click to show internal directories.
Click to hide internal directories.