Skip to content

Commit

Permalink
do not accept empty list of addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
neoaggelos committed Feb 29, 2024
1 parent 6d1df75 commit e4bd4d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/microk8sconfig_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func (r *MicroK8sConfigReconciler) handleJoiningControlPlaneNode(ctx context.Con

scope.Info("Creating BootstrapData for the join control plane")
ipsOfNodesToConnectTo, err := r.getControlPlaneNodesToJoin(ctx, scope)
if err != nil || ipsOfNodesToConnectTo[0] == "" {
if err != nil || len(ipsOfNodesToConnectTo) == 0 {
scope.Info("Failed to discover a control plane IP, requeueing.")
return ctrl.Result{RequeueAfter: 30 * time.Second}, nil
}
Expand Down

0 comments on commit e4bd4d5

Please sign in to comment.