Documentation ¶
Index ¶
- func Apply(ctx context.Context, cfg *rest.Config, root, manifestPath string) (objects []*unstructured.Unstructured, err error)
- func IsKubernetesObject(object *unstructured.Unstructured) bool
- func IsKustomization(object *unstructured.Unstructured) bool
- func ReadObjects(r io.Reader) ([]*unstructured.Unstructured, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
func Apply(ctx context.Context, cfg *rest.Config, root, manifestPath string) (objects []*unstructured.Unstructured, err error)
func IsKubernetesObject ¶
func IsKubernetesObject(object *unstructured.Unstructured) bool
IsKubernetesObject checks if the given object has the minimum required fields to be a Kubernetes object.
func IsKustomization ¶
func IsKustomization(object *unstructured.Unstructured) bool
IsKustomization checks if the given object is a Kustomize config.
func ReadObjects ¶
func ReadObjects(r io.Reader) ([]*unstructured.Unstructured, error)
ReadObjects decodes the YAML or JSON documents from the given reader into unstructured Kubernetes API objects. The documents which do not subscribe to the Kubernetes Object interface, are silently dropped from the result.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.