kustomizeutils

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeResMapIntoList

func DecodeResMapIntoList(decoder runtime.Decoder, resMap resmap.ResMap, into runtime.Object) error

DecodeResMapIntoList decodes a resmap.ResMap into a list represented by runtime.Object.

func DecodeResMapObjects

func DecodeResMapObjects(deccoder runtime.Decoder, resMap resmap.ResMap) ([]runtime.Object, error)

DecodeResMapObjects decodes the resmap.ResMap objects into a slice of runtime.Object.

func DecodeResMapUnstructureds

func DecodeResMapUnstructureds(resMap resmap.ResMap) ([]unstructured.Unstructured, error)

DecodeResMapUnstructureds decodes a resmap.ResMap into a slice of unstructured.Unstructured.

func DecodeResource

func DecodeResource(decoder runtime.Decoder, res *resource.Resource, defaults *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error)

DecodeResource decodes a resource.Resource into a given runtime.Object, if given. Shorthand for resource.Resource.MarshalJSON + runtime.Codec.Decode.

func RunKustomize

func RunKustomize(dir string) (resmap.ResMap, error)

RunKustomize is a shorthand for running kustomize in a target directory.

func RunKustomizeIntoList

func RunKustomizeIntoList(dir string, decoder runtime.Decoder, into runtime.Object) error

RunKustomizeIntoList is a shorthand for running kustomize and parsing the result into the given list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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