manifest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseYAML

func ParseYAML(data []byte) ([]*unstructured.Unstructured, error)

func SortObjectsByHierarchy

func SortObjectsByHierarchy(objects []*unstructured.Unstructured)

SortObjectsByHierarchy ensures that objects are sorted in the following order:

1. CRDs 2. APIExports 3. APIBindings 4. Namespaces 5. <everything else>

This ensures they can be successfully applied in order (though some delay might be required between creating a CRD and creating objects using that CRD).

Types

type Applier

type Applier interface {
	Apply(ctx context.Context, objs []*unstructured.Unstructured) (requeue bool, err error)
}

func NewApplier

func NewApplier(client ctrlruntimeclient.Client) Applier

type ClusterApplier

type ClusterApplier interface {
	Cluster(cluster logicalcluster.Name) (Applier, error)
}

func NewClusterApplier

func NewClusterApplier(cc kcp.ClusterClient) ClusterApplier

Jump to

Keyboard shortcuts

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