printutils

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintResourceLikeYamlFile

func PrintResourceLikeYamlFile(w io.Writer, data interface{}) error

take a interface that can be a resource or multiple resource and print it as the content of a file we could use for an apply.

func RenderTemplateAsKind added in v0.8.0

func RenderTemplateAsKind(templateSpec map[string]interface{}, kindName string, apiVersion int) (string, error)

RenderTemplateAsKind takes a template's `spec` (with a `defaults` key holding metadata and spec) and turns it into a YAML resource of the given kind/version.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL