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
Click to show internal directories.
Click to hide internal directories.