We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description
Current test suite runs reconciliation and checks whether error occurred or not:
hmc/internal/controller/managedcluster_controller_test.go
Lines 215 to 226 in 2e92fb6
However, reconciler exits after adding finalizer to the resource being reconciled:
// managedcluster_controller.go ... func (r *ManagedClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { ... return r.reconcileUpdate(ctx, managedCluster) } func (r *ManagedClusterReconciler) reconcileUpdate(ctx context.Context, mc *hmc.ManagedCluster) (_ ctrl.Result, err error) { ... if controllerutil.AddFinalizer(mc, hmc.ManagedClusterFinalizer) { if err := r.Client.Update(ctx, mc); err != nil { return ctrl.Result{}, fmt.Errorf("failed to update managedCluster %s/%s: %w", mc.Namespace, mc.Name, err) } return ctrl.Result{}, nil } ...
Expected behaviour
Object should be reconciled until it eventually enters desired state defined by test-case parameters or test should fail by timeout.
The text was updated successfully, but these errors were encountered:
BROngineer
Successfully merging a pull request may close this issue.
Description
Current test suite runs reconciliation and checks whether error occurred or not:
hmc/internal/controller/managedcluster_controller_test.go
Lines 215 to 226 in 2e92fb6
However, reconciler exits after adding finalizer to the resource being reconciled:
Expected behaviour
Object should be reconciled until it eventually enters desired state defined by test-case parameters or test should fail by timeout.
The text was updated successfully, but these errors were encountered: