Skip to content

Commit

Permalink
Merge pull request #9690 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…9673-to-release-1.4

[release-1.4] 🐛 Fix DockerMachine panic
  • Loading branch information
k8s-ci-robot authored Nov 8, 2023
2 parents 78c6d7d + 162879d commit 0457d29
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,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 0457d29

Please sign in to comment.