Skip to content

Commit 4b7ca5a

Browse files
authored
Merge pull request #2274 from fabriziopandini/capd-reconcile-status-ready-after-move
🐛capd: reconcile status ready after move
2 parents 5ac3f42 + 5237d1c commit 4b7ca5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/infrastructure/docker/controllers/dockermachine_controller.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ func (r *DockerMachineReconciler) reconcileNormal(ctx context.Context, machine *
158158

159159
// if the machine is already provisioned, return
160160
if dockerMachine.Spec.ProviderID != nil {
161+
// ensure ready state is set.
162+
// This is required after move, bacuse status is not moved to the target cluster.
163+
dockerMachine.Status.Ready = true
161164
return ctrl.Result{}, nil
162165
}
163166

0 commit comments

Comments
 (0)