Documentation ¶
Index ¶
- type CNIReconciler
- type Reconciler
- func (r *Reconciler) CheckControlPlaneReady(ctx context.Context, log logr.Logger, spec *cluster.Spec) (controller.Result, error)
- func (r *Reconciler) Reconcile(ctx context.Context, log logr.Logger, c *anywherev1.Cluster) (controller.Result, error)
- func (r *Reconciler) ReconcileCNI(ctx context.Context, log logr.Logger, clusterSpec *cluster.Spec) (controller.Result, error)
- func (r *Reconciler) ReconcileControlPlane(ctx context.Context, log logr.Logger, spec *cluster.Spec) (controller.Result, error)
- func (r *Reconciler) ReconcileWorkers(ctx context.Context, log logr.Logger, spec *cluster.Spec) (controller.Result, error)
- type RemoteClientRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CNIReconciler ¶ added in v0.13.0
type CNIReconciler interface {
Reconcile(ctx context.Context, logger logr.Logger, client client.Client, spec *cluster.Spec) (controller.Result, error)
}
CNIReconciler is an interface for reconciling CNI in the Docker cluster reconciler.
type Reconciler ¶
type Reconciler struct { *serverside.ObjectApplier // contains filtered or unexported fields }
Reconciler contains dependencies for a docker reconciler.
func New ¶
func New(client client.Client, cniReconciler CNIReconciler, remoteClientRegistry RemoteClientRegistry) *Reconciler
New creates a new Docker provider reconciler.
func (*Reconciler) CheckControlPlaneReady ¶ added in v0.13.0
func (r *Reconciler) CheckControlPlaneReady(ctx context.Context, log logr.Logger, spec *cluster.Spec) (controller.Result, error)
CheckControlPlaneReady checks whether the control plane for an eks-a cluster is ready or not. Requeues with the appropriate wait times whenever the cluster is not ready yet.
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(ctx context.Context, log logr.Logger, c *anywherev1.Cluster) (controller.Result, error)
Reconcile brings the cluster to the desired state for the docker provider.
func (*Reconciler) ReconcileCNI ¶ added in v0.13.0
func (r *Reconciler) ReconcileCNI(ctx context.Context, log logr.Logger, clusterSpec *cluster.Spec) (controller.Result, error)
ReconcileCNI takes the Cilium CNI in a cluster to the desired state defined in a cluster spec.
func (*Reconciler) ReconcileControlPlane ¶ added in v0.13.0
func (r *Reconciler) ReconcileControlPlane(ctx context.Context, log logr.Logger, spec *cluster.Spec) (controller.Result, error)
ReconcileControlPlane applies the control plane CAPI objects to the cluster.
func (*Reconciler) ReconcileWorkers ¶ added in v0.13.0
func (r *Reconciler) ReconcileWorkers(ctx context.Context, log logr.Logger, spec *cluster.Spec) (controller.Result, error)
ReconcileWorkers applies the worker CAPI objects to the cluster.