From 2bd632e403216d6c18ad785544d73f6047b07a7f Mon Sep 17 00:00:00 2001 From: Fang Xiaolong Date: Tue, 11 Jun 2024 21:17:07 +0800 Subject: [PATCH] fix: In e2e test, fedcorev1a1.PropagationPolicySpec.Placements should be a DesiredPlacement type, not ClusterReference type --- test/e2e/framework/policies/propagationpolicy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/framework/policies/propagationpolicy.go b/test/e2e/framework/policies/propagationpolicy.go index 2b9de1bf..3ed7e5f3 100644 --- a/test/e2e/framework/policies/propagationpolicy.go +++ b/test/e2e/framework/policies/propagationpolicy.go @@ -38,12 +38,12 @@ func PropagationPolicyForClustersWithPlacements( }, Spec: fedcorev1a1.PropagationPolicySpec{ SchedulingMode: fedcorev1a1.SchedulingModeDuplicate, - Placements: []fedcorev1a1.ClusterReference{}, + Placements: []fedcorev1a1.DesiredPlacement{}, }, } for _, c := range clusters { - policy.Spec.Placements = append(policy.Spec.Placements, fedcorev1a1.ClusterReference{Cluster: c.Name}) + policy.Spec.Placements = append(policy.Spec.Placements, fedcorev1a1.DesiredPlacement{Cluster: c.Name}) } return policy