Documentation ¶
Index ¶
- func ErrorIfMissingAnnotation(nodes []*yaml.RNode, keys ...AnnotationKey) error
- func GetFileAnnotations(rn *yaml.RNode) (string, string, error)
- func Map(nodes []*yaml.RNode, fn func(*yaml.RNode) (*yaml.RNode, error)) ([]*yaml.RNode, error)
- func MapMeta(nodes []*yaml.RNode, ...) ([]*yaml.RNode, error)
- func SortNodes(nodes []*yaml.RNode) error
- type AnnotationKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorIfMissingAnnotation ¶
func ErrorIfMissingAnnotation(nodes []*yaml.RNode, keys ...AnnotationKey) error
ErrorIfMissingAnnotation validates the provided annotations are present on the given resources
Types ¶
type AnnotationKey ¶
type AnnotationKey = string
const ( // IndexAnnotation records the index of a specific resource in a file or input stream. IndexAnnotation AnnotationKey = "config.kubernetes.io/index" // PathAnnotation records the path to the file the Resource was read from PathAnnotation AnnotationKey = "config.kubernetes.io/path" // PackageAnnotation records the name of the package the Resource was read from PackageAnnotation AnnotationKey = "config.kubernetes.io/package" )
Click to show internal directories.
Click to hide internal directories.