Skip to content

Commit

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

[release-1.5] 🐛 Fix DockerMachine panic
  • Loading branch information
k8s-ci-robot authored Nov 8, 2023
2 parents fb2d7b0 + dd8b86b commit e0cee3b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,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 e0cee3b

Please sign in to comment.