Temporary e2e test fix for cluster-name label not being applied for machinedeployments automatically
@@ -271,6 +271,7 @@ func makeMachineDeployment(namespace, mdName, awsMachineTemplateName, bootstrapC
Name: mdName,
Namespace: namespace,
Labels: map[string]string{
+ "cluster.x-k8s.io/cluster-name": clusterName,
"nodepool": mdName,
},
},
@@ -278,6 +279,7 @@ func makeMachineDeployment(namespace, mdName, awsMachineTemplateName, bootstrapC
Replicas: &replicas,
Selector: metav1.LabelSelector{
MatchLabels: map[string]string{
+ "cluster.x-k8s.io/cluster-name": clusterName,
"nodepool": mdName,
},
},
@@ -285,6 +287,7 @@ func makeMachineDeployment(namespace, mdName, awsMachineTemplateName, bootstrapC
Template: clusterv1.MachineTemplateSpec{
ObjectMeta: clusterv1.ObjectMeta{
Labels: map[string]string{
+ "cluster.x-k8s.io/cluster-name": clusterName,
"nodepool": mdName,
},
},
