Skip to content

Commit 5bd4c48

Browse files
committed
fix: new topology tags should be additional
Otherwise existing machines cannot be found anymore
1 parent 96946a9 commit 5bd4c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/metalstackmachine_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,6 @@ func (r *machineReconciler) machineTags() []string {
438438
tags := []string{
439439
tag.New(tag.ClusterID, string(r.infraCluster.GetUID())),
440440
tag.New(v1alpha1.TagInfraMachineID, string(r.infraMachine.GetUID())),
441-
tag.New(corev1.LabelTopologyZone, r.infraCluster.Spec.Partition),
442441
}
443442

444443
if util.IsControlPlaneMachine(r.clusterMachine) {
@@ -450,6 +449,7 @@ func (r *machineReconciler) machineTags() []string {
450449

451450
func (r *machineReconciler) additionalMachineTags(partition *models.V1PartitionResponse) []string {
452451
tags := []string{
452+
tag.New(corev1.LabelTopologyZone, r.infraCluster.Spec.Partition),
453453
tag.New(corev1.LabelTopologyRegion, partition.Labels[tag.PartitionRegion]),
454454
}
455455

0 commit comments

Comments
 (0)