Skip to content

Commit

Permalink
fix: pass empty slice for control plane machinedeployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Rudoi committed Apr 15, 2019
1 parent 9c4f08f commit 6a27382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/clusterctl/clusterdeployer/clusterdeployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (d *ClusterDeployer) Create(cluster *clusterv1.Cluster, machines []*cluster
}

klog.Infof("Creating control plane %v in namespace %q", controlPlaneMachines[0].Name, cluster.Namespace)
if err := phases.ApplyMachines(bootstrapClient, cluster.Namespace, []*clusterv1.Machine{controlPlaneMachines[0]}, machineDeployments); err != nil {
if err := phases.ApplyMachines(bootstrapClient, cluster.Namespace, []*clusterv1.Machine{controlPlaneMachines[0]}, []*clusterv1.MachineDeployment{}); err != nil {
return errors.Wrap(err, "unable to create control plane machine")
}

Expand Down

0 comments on commit 6a27382

Please sign in to comment.