Skip to content

Commit

Permalink
fix the import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Himanshu Pandey committed Feb 11, 2020
1 parent 49d2b3d commit 6a69912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/v1alpha3/machinedeployment_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,6 @@ func PopulateDefaultsMachineDeployment(d *MachineDeployment) {
d.Spec.Template.Labels[MachineDeploymentLabelName] = d.Name
}
// Make sure selector and template to be in the same cluster.
d.Spec.Selector.MatchLabels[clusterv1.ClusterLabelName] = d.Spec.ClusterName
d.Spec.Template.Labels[clusterv1.ClusterLabelName] = d.Spec.ClusterName
d.Spec.Selector.MatchLabels[ClusterLabelName] = d.Spec.ClusterName
d.Spec.Template.Labels[ClusterLabelName] = d.Spec.ClusterName
}

0 comments on commit 6a69912

Please sign in to comment.