Documentation
¶
Index ¶
- func CollectCRDNames(objects []*unstructured.Unstructured) []string
- func ParseManifestFile(manifestPath string) ([]*unstructured.Unstructured, error)
- func ReadYAMLObjects(reader io.Reader) ([]*unstructured.Unstructured, error)
- func WaitForCRDsEstablished(ctx context.Context, k8sClient client.Client, crdNames []string) error
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.