Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#9673 from makhov/docker-machine-pa…
Browse files Browse the repository at this point in the history
…nic-fix

🐛 Fix DockerMachine panic
  • Loading branch information
k8s-ci-robot authored Nov 8, 2023
2 parents 3f2e416 + 444d64f commit eddb1c6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ func (r *DockerMachineReconciler) Reconcile(ctx context.Context, req ctrl.Reques
return ctrl.Result{}, nil
}

if cluster.Spec.InfrastructureRef == nil {
log.Info("Cluster infrastructureRef is not available yet")
return ctrl.Result{}, nil
}

// Fetch the Docker Cluster.
dockerCluster := &infrav1.DockerCluster{}
dockerClusterName := client.ObjectKey{
Expand Down

0 comments on commit eddb1c6

Please sign in to comment.