Skip to content

Commit

Permalink
Fix conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziopandini committed Dec 13, 2021
1 parent 0ec83f3 commit fbab740
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/v1alpha4/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbab740

Please sign in to comment.