Documentation ¶
Index ¶
- func BuildKustomization(kustomization types.Kustomization) (resmap.ResMap, error)
- func BuildKustomizationIntoList(decoder runtime.Decoder, kustomization types.Kustomization, ...) error
- func DecodeResMapIntoList(decoder runtime.Decoder, resMap resmap.ResMap, into runtime.Object) error
- func DecodeResMapObjects(deccoder runtime.Decoder, resMap resmap.ResMap) ([]runtime.Object, error)
- func DecodeResMapUnstructureds(resMap resmap.ResMap) ([]unstructured.Unstructured, error)
- func DecodeResource(decoder runtime.Decoder, res *resource.Resource, ...) (runtime.Object, *schema.GroupVersionKind, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildKustomization ¶
func BuildKustomization(kustomization types.Kustomization) (resmap.ResMap, error)
BuildKustomization is a shorthand for creating an in-memory directory, creating 'kustomization.yaml' with the yaml-encoded contents of the given types.Kustomization in it and running a krusty.Kustomizer on the directory. This is useful for quickly using types from remote repositories via Kustomize.
func BuildKustomizationIntoList ¶
func BuildKustomizationIntoList(decoder runtime.Decoder, kustomization types.Kustomization, into runtime.Object) error
BuildKustomizationIntoList is a shorthand for BuildKustomization + DecodeResMapIntoList.
func DecodeResMapIntoList ¶
DecodeResMapIntoList decodes a resmap.ResMap into a list represented by runtime.Object.
func DecodeResMapObjects ¶
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.
Types ¶
This section is empty.