Skip to content

Commit eddb1c6

Browse files
authored
Merge pull request kubernetes-sigs#9673 from makhov/docker-machine-panic-fix
🐛 Fix DockerMachine panic
2 parents 3f2e416 + 444d64f commit eddb1c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/infrastructure/docker/internal/controllers/dockermachine_controller.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ func (r *DockerMachineReconciler) Reconcile(ctx context.Context, req ctrl.Reques
119119
return ctrl.Result{}, nil
120120
}
121121

122+
if cluster.Spec.InfrastructureRef == nil {
123+
log.Info("Cluster infrastructureRef is not available yet")
124+
return ctrl.Result{}, nil
125+
}
126+
122127
// Fetch the Docker Cluster.
123128
dockerCluster := &infrav1.DockerCluster{}
124129
dockerClusterName := client.ObjectKey{

0 commit comments

Comments
 (0)