templates

package
v1.9.0-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KubernetesToYAML

func KubernetesToYAML(data []runtime.Object, auxiliaries ...string) (string, error)

KubernetesToYAML properly encodes a list of resources as YAML. Straight up encoding as YAML leaves us with a non-standard data structure. Going through JSON eliminates the extra fields and keys and results in what you would expect to see. This function takes a slice of items to support creating a multi-document YAML string (separated with "---" between each item).

Types

This section is empty.

Jump to

Keyboard shortcuts

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