Skip to content

Commit

Permalink
DockerMachine panic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
makhov authored and k8s-infra-cherrypick-robot committed Nov 8, 2023
1 parent fb2d7b0 commit dd8b86b
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 dd8b86b

Please sign in to comment.