Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderDir ¶
func RenderDir(manifestDir string, d *RenderData) ([]*unstructured.Unstructured, error)
RenderDir will render all manifests in a directory, descending in to subdirectories It will perform template substitutions based on the data supplied by the RenderData
func RenderDirs ¶
func RenderDirs(manifestDirs []string, d *RenderData) ([]*unstructured.Unstructured, error)
RenderDirs renders multiple directories, but sorts the discovered files *globally* first. In other words, if you have the structure - a/001.yaml - a/003.yaml - b/002.yaml It will still render 001, 002, and 003 in order.
func RenderTemplate ¶
func RenderTemplate(path string, d *RenderData) ([]*unstructured.Unstructured, error)
RenderTemplate reads, renders, and attempts to parse a yaml or json file representing one or more k8s api objects
Types ¶
type RenderData ¶
func MakeRenderData ¶
func MakeRenderData() RenderData
Click to show internal directories.
Click to hide internal directories.