manifestutil

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectCRDNames

func CollectCRDNames(objects []*unstructured.Unstructured) []string

CollectCRDNames returns the names of all CustomResourceDefinition objects from the given list of unstructured objects. Only objects with apiVersion "apiextensions.k8s.io/v1" and kind "CustomResourceDefinition" are matched.

func ParseManifestFile

func ParseManifestFile(manifestPath string) ([]*unstructured.Unstructured, error)

ParseManifestFile reads a YAML file and parses it into unstructured objects.

func ReadYAMLObjects

func ReadYAMLObjects(reader io.Reader) ([]*unstructured.Unstructured, error)

ReadYAMLObjects parses multi-document YAML from a reader into unstructured objects. Empty documents and documents without a kind are skipped.

func WaitForCRDsEstablished

func WaitForCRDsEstablished(ctx context.Context, k8sClient client.Client, crdNames []string) error

WaitForCRDsEstablished polls the API server until all named CRDs have the Established condition set to True, or the context is cancelled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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