Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConvexInstanceReconciler ¶
type ConvexInstanceReconciler struct {
client.Client
Scheme *runtime.Scheme
Recorder events.EventRecorder
}
ConvexInstanceReconciler reconciles a ConvexInstance object
func (*ConvexInstanceReconciler) Reconcile ¶
func (r *ConvexInstanceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile moves the cluster state toward the desired ConvexInstance state.
The flow is: 1. Resolve the ConvexInstance and handle finalizers. 2. Observe current backend/dashboard state (images, versions). 3. Determine the upgrade plan (in-place vs export-import) based on spec changes and current job status. 4. Validate external references (DB/S3 secrets) to fail fast if missing. 5. Reconcile core resources (ConfigMap, Secrets, PVC, Services, Dashboard, StatefulSet, Gateway/Route). 6. Execute the upgrade plan (rolling update or export/import orchestration). 7. Update status conditions and phase.
func (*ConvexInstanceReconciler) SetupWithManager ¶
func (r *ConvexInstanceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.