Documentation
¶
Index ¶
- func RenderDir(manifestDir string, d *RenderData) ([]*unstructured.Unstructured, error)
- func RenderDirs(manifestDirs []string, d *RenderData) ([]*unstructured.Unstructured, error)
- func RenderTemplate(path string, d *RenderData) ([]*unstructured.Unstructured, error)
- func ToYaml(v any) string
- type RenderData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderDir ¶ added in v0.87.0
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 ¶ added in v0.87.0
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 ¶ added in v0.87.0
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 ¶ added in v0.87.0
func MakeRenderData ¶ added in v0.87.0
func MakeRenderData() RenderData