Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitClusterReconciler ¶
InitClusterReconciler returns a registrator for new controller instance with the default logger
Types ¶
type ClusterReconciler ¶
type ClusterReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Actions []actor.Actor }
ClusterReconciler reconciles a CrdbCluster object
func (*ClusterReconciler) Reconcile ¶
func (r *ClusterReconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)
Reconcile is the reconciliation loop entry point for cluster CRDs. It fetches the current cluster resources and uses its state to interact with the world via a set of actions implemented by `Actor`s (i.e. init cluster, create a statefulset). Each action can result in:
- a short requeue (5 seconds)
- a long requeue (5 minutes)
- cancel the loop and wait for another event
- if no other errors occurred continue to the next action
func (*ClusterReconciler) SetupWithManager ¶
func (r *ClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers the controller with the controller.Manager from controller-runtime
Click to show internal directories.
Click to hide internal directories.