createCluster: add masterlb to list of nodes, so it will be considered during rollback

pull/212/head
iwilltry42 4 years ago
parent edeea4540b
commit dec8043edf
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110
  1. 1
      pkg/cluster/cluster.go

@ -273,6 +273,7 @@ func CreateCluster(ctx context.Context, cluster *k3d.Cluster, runtime k3drt.Runt
Labels: k3d.DefaultObjectLabels, // TODO: createLoadBalancer: add more expressive labels
Network: cluster.Network.Name,
}
cluster.Nodes = append(cluster.Nodes, lbNode) // append lbNode to list of cluster nodes, so it will be considered during rollback
log.Infof("Creating LoadBalancer '%s'", lbNode.Name)
if err := CreateNode(lbNode, runtime); err != nil {
log.Errorln("Failed to create loadbalancer")

Loading…
Cancel
Save