Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckControlPlaneReady ¶ added in v0.12.0
func CheckControlPlaneReady(ctx context.Context, client client.Client, log logr.Logger, cluster *anywherev1.Cluster) (controller.Result, error)
CheckControlPlaneReady is a controller helper to check whether a CAPI cluster CP for an eks-a cluster is ready or not. This is intended to be used from cluster reconcilers due its signature and that it returns controller results with appropriate wait times whenever the cluster is not ready
Types ¶
type ProviderClusterReconciler ¶
type ProviderClusterReconciler interface {
Reconcile(ctx context.Context, log logr.Logger, cluster *anywherev1.Cluster) (controller.Result, error)
}
type ProviderClusterReconcilerRegistry ¶
type ProviderClusterReconcilerRegistry struct {
// contains filtered or unexported fields
}
ProviderClusterReconcilerRegistry holds a collection of cluster provider reconcilers and ties them to different provider Datacenter kinds
func (*ProviderClusterReconcilerRegistry) Get ¶
func (r *ProviderClusterReconcilerRegistry) Get(datacenterKind string) ProviderClusterReconciler
Get returns ProviderClusterReconciler for a particular Datacenter kind
type ProviderClusterReconcilerRegistryBuilder ¶
type ProviderClusterReconcilerRegistryBuilder struct {
// contains filtered or unexported fields
}
ProviderClusterReconcilerRegistryBuilder builds ProviderClusterReconcilerRegistry's
func NewProviderClusterReconcilerRegistryBuilder ¶
func NewProviderClusterReconcilerRegistryBuilder() *ProviderClusterReconcilerRegistryBuilder
NewProviderClusterReconcilerRegistryBuilder returns a new empty ProviderClusterReconcilerRegistryBuilder
func (*ProviderClusterReconcilerRegistryBuilder) Add ¶
func (b *ProviderClusterReconcilerRegistryBuilder) Add(datacenterKind string, reconciler ProviderClusterReconciler) *ProviderClusterReconcilerRegistryBuilder
Add accumulates a pair of datacenter kind a reconciler to be included in the final registry
func (*ProviderClusterReconcilerRegistryBuilder) Build ¶
func (b *ProviderClusterReconcilerRegistryBuilder) Build() ProviderClusterReconcilerRegistry
Build returns a registry with all the previously added reconcilers