From fbab74025ff684ab9931d8aad7258ade3dd384c4 Mon Sep 17 00:00:00 2001 From: fabriziopandini Date: Mon, 13 Dec 2021 12:50:15 +0100 Subject: [PATCH] Fix conversions --- api/v1alpha4/conversion.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/v1alpha4/conversion.go b/api/v1alpha4/conversion.go index b298b3cd94a1..60ab4aece5dd 100644 --- a/api/v1alpha4/conversion.go +++ b/api/v1alpha4/conversion.go @@ -39,6 +39,11 @@ func (src *Cluster) ConvertTo(dstRaw conversion.Hub) error { if restored.Spec.Topology != nil { dst.Spec.Topology.Variables = restored.Spec.Topology.Variables + if restored.Spec.Topology.Workers != nil { + for i := range restored.Spec.Topology.Workers.MachineDeployments { + dst.Spec.Topology.Workers.MachineDeployments[i].FailureDomain = restored.Spec.Topology.Workers.MachineDeployments[i].FailureDomain + } + } } return nil