kustomizeutils

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

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

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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