Skip to content

Commit c685cf2

Browse files
sbueringerk8s-infra-cherrypick-robot
authored andcommitted
Fix flaky TestFuzzyConversion (Cluster) test
Signed-off-by: Stefan Büringer [email protected]
1 parent 375f8a6 commit c685cf2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/core/v1beta1/conversion_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ func spokeCluster(in *Cluster, c randfill.Continue) {
229229
in.Spec.ClusterNetwork = nil
230230
}
231231
}
232+
233+
if in.Spec.Topology != nil && reflect.DeepEqual(in.Spec.Topology, &Topology{}) {
234+
in.Spec.Topology = nil
235+
}
232236
}
233237

234238
func spokeClusterTopology(in *Topology, c randfill.Continue) {

0 commit comments

Comments
 (0)