[e2e] Fix up MachineDeployment for latest v1alpha3 changes
@@ -219,7 +219,6 @@ func makeMachineDeployment(namespace, mdName, awsMachineTemplateName, bootstrapC
Name: mdName,
Namespace: namespace,
Labels: map[string]string{
- clusterv1.ClusterLabelName: clusterName,
"nodepool": mdName,
},
},
@@ -227,18 +226,18 @@ func makeMachineDeployment(namespace, mdName, awsMachineTemplateName, bootstrapC
Replicas: &replicas,
Selector: metav1.LabelSelector{
MatchLabels: map[string]string{
- clusterv1.ClusterLabelName: clusterName,
"nodepool": mdName,
},
},
+ ClusterName: clusterName,
Template: clusterv1.MachineTemplateSpec{
ObjectMeta: clusterv1.ObjectMeta{
Labels: map[string]string{
- clusterv1.ClusterLabelName: clusterName,
"nodepool": mdName,
},
},
Spec: clusterv1.MachineSpec{
+ ClusterName: clusterName,
Bootstrap: clusterv1.Bootstrap{
ConfigRef: &corev1.ObjectReference{
Kind: "KubeadmConfigTemplate",
