Documentation ¶
Index ¶
- type CNIReconciler
- type IPValidator
- type Reconciler
- func (r *Reconciler) CheckControlPlaneReady(ctx context.Context, log logr.Logger, spec *c.Spec) (controller.Result, error)
- func (r *Reconciler) Reconcile(ctx context.Context, log logr.Logger, cluster *anywherev1.Cluster) (controller.Result, error)
- func (r *Reconciler) ReconcileCNI(ctx context.Context, log logr.Logger, clusterSpec *c.Spec) (controller.Result, error)
- func (r *Reconciler) ReconcileControlPlane(ctx context.Context, log logr.Logger, spec *c.Spec) (controller.Result, error)
- func (r *Reconciler) ReconcileWorkers(ctx context.Context, log logr.Logger, clusterSpec *c.Spec) (controller.Result, error)
- func (r *Reconciler) ValidateDatacenterConfig(ctx context.Context, log logr.Logger, spec *c.Spec) (controller.Result, error)
- func (r *Reconciler) ValidateMachineConfig(ctx context.Context, log logr.Logger, spec *c.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.16.0
type CNIReconciler interface {
Reconcile(ctx context.Context, logger logr.Logger, client client.Client, spec *c.Spec) (controller.Result, error)
}
CNIReconciler is an interface for reconciling CNI in the CloudStack cluster reconciler.
type IPValidator ¶ added in v0.16.0
type IPValidator interface {
ValidateControlPlaneIP(ctx context.Context, log logr.Logger, spec *c.Spec) (controller.Result, error)
}
IPValidator is an interface that defines methods to validate the control plane IP.
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler for CloudStack.
func New ¶
func New(client client.Client, ipValidator IPValidator, cniReconciler CNIReconciler, remoteClientRegistry RemoteClientRegistry, validatorRegistry cloudstack.ValidatorRegistry) *Reconciler
New defines a new CloudStack reconciler.
func (*Reconciler) CheckControlPlaneReady ¶ added in v0.16.0
func (r *Reconciler) CheckControlPlaneReady(ctx context.Context, log logr.Logger, spec *c.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 control plane is not ready yet.
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(ctx context.Context, log logr.Logger, cluster *anywherev1.Cluster) (controller.Result, error)
Reconcile reconciles cluster to desired state.
func (*Reconciler) ReconcileCNI ¶
func (r *Reconciler) ReconcileCNI(ctx context.Context, log logr.Logger, clusterSpec *c.Spec) (controller.Result, error)
ReconcileCNI reconciles the CNI to the desired state.
func (*Reconciler) ReconcileControlPlane ¶
func (r *Reconciler) ReconcileControlPlane(ctx context.Context, log logr.Logger, spec *c.Spec) (controller.Result, error)
ReconcileControlPlane applies the control plane CAPI objects to the cluster.
func (*Reconciler) ReconcileWorkers ¶ added in v0.16.0
func (r *Reconciler) ReconcileWorkers(ctx context.Context, log logr.Logger, clusterSpec *c.Spec) (controller.Result, error)
ReconcileWorkers applies the worker CAPI objects to the cluster.
func (*Reconciler) ValidateDatacenterConfig ¶ added in v0.16.0
func (r *Reconciler) ValidateDatacenterConfig(ctx context.Context, log logr.Logger, spec *c.Spec) (controller.Result, error)
ValidateDatacenterConfig updates the cluster status if the CloudStackDatacenter status indicates that the spec is invalid.
func (*Reconciler) ValidateMachineConfig ¶ added in v0.16.0
func (r *Reconciler) ValidateMachineConfig(ctx context.Context, log logr.Logger, spec *c.Spec) (controller.Result, error)
ValidateMachineConfig performs additional, context-aware validations on the machine configs.