@@ -74,7 +74,6 @@ var v1alpha7OpenStackClusterRestorer = conversion.RestorerFor[*OpenStackCluster]
74
74
return & c .Spec
75
75
},
76
76
restorev1alpha7ClusterSpec ,
77
-
78
77
// Filter out Bastion, which is restored separately
79
78
conversion.HashedFilterField [* OpenStackCluster , OpenStackClusterSpec ](
80
79
func (s * OpenStackClusterSpec ) * OpenStackClusterSpec {
@@ -107,7 +106,6 @@ var v1beta1OpenStackClusterRestorer = conversion.RestorerFor[*infrav1.OpenStackC
107
106
return & c .Spec
108
107
},
109
108
restorev1beta1ClusterSpec ,
110
-
111
109
// Filter out Bastion, which is restored separately
112
110
conversion.HashedFilterField [* infrav1.OpenStackCluster , infrav1.OpenStackClusterSpec ](
113
111
func (s * infrav1.OpenStackClusterSpec ) * infrav1.OpenStackClusterSpec {
@@ -167,11 +165,7 @@ func restorev1alpha7ClusterSpec(previous *OpenStackClusterSpec, dst *OpenStackCl
167
165
}
168
166
169
167
func restorev1beta1ClusterSpec (previous * infrav1.OpenStackClusterSpec , dst * infrav1.OpenStackClusterSpec ) {
170
- prevBastion := previous .Bastion
171
- dstBastion := dst .Bastion
172
- if prevBastion != nil && dstBastion != nil {
173
- restorev1beta1MachineSpec (& prevBastion .Instance , & dstBastion .Instance )
174
- }
168
+ // Bastion is restored separately
175
169
176
170
// Restore all fields except ID, which should have been copied over in conversion
177
171
dst .ExternalNetwork .Name = previous .ExternalNetwork .Name
0 commit comments