Skip to content

Commit 240d078

Browse files
committed
Fixes VMG webhook validation error
1 parent 49caba5 commit 240d078

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/services/vmoperator/vmopmachine.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ func (v *VmopMachineService) ReconcileNormal(ctx context.Context, machineCtx cap
242242
}
243243
mdNames := []string{}
244244
for _, machineDeployment := range machineDeployments.Items {
245+
// Not adding node pool with explicit failureDomain specified to propose anti-affinity behavior
246+
// among node pools with automatic placement only.
245247
if machineDeployment.Spec.Template.Spec.FailureDomain == "" && machineDeployment.Name != nodePool {
246248
mdNames = append(mdNames, machineDeployment.Name)
247249
}
@@ -282,7 +284,7 @@ func (v *VmopMachineService) ReconcileNormal(ctx context.Context, machineCtx cap
282284
},
283285
},
284286
},
285-
TopologyKey: corev1.LabelTopologyZone,
287+
TopologyKey: "",
286288
},
287289
},
288290
},

0 commit comments

Comments
 (0)