Documentation
¶
Overview ¶
Package controlplane manages local development control planes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TeardownLocalDevControlPlane ¶
TeardownLocalDevControlPlane tears down a local dev control plane by name. It deletes the kind cluster, stops the registry container, and removes the registry data directory.
Types ¶
type DevControlPlane ¶
type DevControlPlane interface {
// Info returns human-friendly information about the control plane.
Info() string
// Client returns a controller-runtime client for the control plane.
Client() client.Client
// Kubeconfig returns a kubeconfig for the control plane.
Kubeconfig() clientcmd.ClientConfig
// Teardown tears down the control plane, deleting any resources it may use.
Teardown(ctx context.Context) error
// Sideload sideloads packages into the control plane.
Sideload(ctx context.Context, imgMap project.ImageTagMap, tag name.Tag) error
}
DevControlPlane is a local development control plane.
func EnsureLocalDevControlPlane ¶
func EnsureLocalDevControlPlane(ctx context.Context, opts ...Option) (DevControlPlane, error)
EnsureLocalDevControlPlane creates or reuses a local kind-based development control plane with Crossplane installed.
type Option ¶
type Option func(*config)
Option configures EnsureLocalDevControlPlane.
func WithClusterAdmin ¶
WithClusterAdmin sets whether to grant Crossplane cluster admin privileges.
func WithCrossplaneVersion ¶
WithCrossplaneVersion sets the Crossplane version to install.
func WithLogger ¶
WithLogger sets the logger for progress updates.
func WithRegistryDir ¶
WithRegistryDir sets the directory for local registry images.